Part Number Hot Search : 
FMB24L 016L2 31818 C3479 TK3A65DA F1220 AN18164B 00002
Product Description
Full Text Search
 

To Download ADUC7021BCPZ62 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  precision analog microcontroller, 12 - b it analog i/o, arm7tdmi mcu data sheet aduc7019/20/21/22/24/25/26/27/28/29 rev. f document feedback information furnished by analog devices is believed to be accurate and reliable. however, no responsibility is assumed by analog devices for its use, nor for any infringements of patents or other rights of third parties that may result from its use. specifications subject to chang e without notice. no license is granted by implication or otherwise under any patent or patent rights of analog devices. trademarks and registered trademarks are the property of their respective owners. one technology way, p.o. box 9106, norwood, ma 020 62 - 9106, u.s.a. tel: 781.329.4700 ? 2005 - 2013 analog devices, inc. all rights reserved. technical support www.analog.com features analog i/o multichannel, 12 - bit, 1 msps adc up to 16 adc channels 1 fully differential and single - ended modes 0 v to v ref analog input range 12- bit voltage output dacs up to 4 dac outputs available 1 on - chip voltage reference on - chip temperature sen sor (3c) voltage comparator microcontroller arm7tdmi core, 16 - bit/32 - bit risc architecture jtag port supports code download and debug clocking options trimmed on - chip oscillator (3%) external watch crystal external clock source up to 44 mhz 41.78 mhz p ll with programmable divider memory 62 kb f lash/ee memory, 8 kb sram in - circuit download, jtag - based debug software - triggered in - circuit reprogrammability on - chip peripherals uart, 2 i 2 c? and spi serial i/o up to 40 - pin gpio port 1 4 general - purpose time rs wake - up and watchdog timers (wdt) power supply monitor 3 - phase, 16 - bit pwm generator 1 programmable logic array (pla) external memory interface, up to 512 kb 1 power specified for 3 v operation active mode: 11 ma @ 5 mhz, 40 ma @ 41.78 mhz packages and te mperature range from 40 - lead 6 mm 6 mm lfcsp to 80 - lead lqfp 1 fully specified for C 40c to +125c operation tools low cost quickstart? development system full third - p arty support applications industrial control and automation systems smart sensors , preci sion instrumentation base station systems, optical networking functional block dia gram 1msps 12-bit adc dac0 12-bit dac dac1 dac2 3-phase pwm (see note 1) aduc7019 adc0 to adc4, adc12 to adc14 xclki xclko rst v ref mux temp sensor band gap ref osc and pll psm por cmp0 cmp1 cmp out pla 4 general- purpose timers 2k 32 sram 31k 16 flash/eeprom serial i/o uart, spi, i 2 c gpio jtag arm7tdmi-based mcu with additional peripherals 12-bit dac 12-bit dac notes 1. see application note an-798. adc15 04955-100 figure 1. 1 depending on part model. see ordering guide for more information.
aduc7019/20/21/22/24/25/26/27/28/29 data sheet rev. f | page 2 of 104 table of contents features .............................................................................................. 1 applications ....................................................................................... 1 functional block diagram .............................................................. 1 revision history ............................................................................... 3 general description ......................................................................... 4 detailed block diagram .............................................................. 9 specifications ................................................................................... 10 timing specifications ................................................................ 13 absolute maximum ratings .......................................................... 20 esd caution ................................................................................ 20 pin configurations and function descriptions ......................... 21 aduc7019/aduc7020/aduc70 21/aduc7022 .................. 21 aduc7024/aduc7025 ............................................................. 25 aduc7026/aduc7027 ............................................................. 28 aduc702 8 ................................................................................... 31 aduc7029 ................................................................................... 33 typical performance characteristics ........................................... 35 te rm inol ogy .................................................................................... 38 adc specifications .................................................................... 38 dac specifications ..................................................................... 38 overview of t he arm7tdmi core ............................................. 39 thumb mode (t) ........................................................................ 39 long multiply (m) ...................................................................... 39 embed dedice (i) ....................................................................... 39 exceptions ................................................................................... 39 arm registers ............................................................................ 39 interrupt latency ........................................................................ 40 memory organization ................................................................... 41 memory access ........................................................................... 41 flash/ee memory ....................................................................... 41 sram ........................................................................................... 41 memory mapped registers ....................................................... 41 adc circuit overview .................................................................. 45 transfer function ....................................................................... 45 typical operation ....................................................................... 46 mmrs interface .......................................................................... 46 converter operation .................................................................. 48 driving the analog inputs ........................................................ 49 calibration ................................................................................... 50 temperature sensor ................................................................... 50 band gap reference ................................................................... 50 nonvolatile flash/ee memory ..................................................... 51 programming .............................................................................. 51 security ........................................................................................ 52 flash/ee control interface ....................................................... 52 execution time from sram and flash/ee ............................ 54 reset and remap ........................................................................ 54 other ana log peripherals .............................................................. 56 dac .............................................................................................. 56 power supply monitor ............................................................... 57 comparator ................................................................................. 57 oscillator and pll power control ........................................ 58 digital peripherals .......................................................................... 61 3 - pha se pwm ............................................................................. 61 description of the pwm block ................................................ 62 general - purpose input/output ................................................ 67 serial port mux ........................................................................... 70 uart serial interface ................................................................ 70 serial peripheral interface ......................................................... 74 i 2 c - compatible interfaces ......................................................... 76 programmable logic array (pla) ........................................... 80 processor reference peripherals ................................................... 83 interrupt system ......................................................................... 83 timers .......................................................................................... 84 external memory interfacing ................................................... 89 hardware design considerations ................................................ 93 power supplies ............................................................................ 93 grounding and board layo ut recommendations ................. 94 clock oscillator .......................................................................... 94 power - on reset operation ....................................................... 95 typical system configuration .................................................. 95 development tools ......................................................................... 96 pc - based tools ........................................................................... 96 in - circuit serial downloader ................................................... 96 outline dimensions ....................................................................... 97 ordering guide ........................................................................ 101
data sheet aduc7019/20/21/22/24/25/26/27/28/29 rev. f | page 3 of 104 revision history 5 /1 3 rev. e to rev. f changes to figure 1 ........................................................................... 1 added figure 2 to figure 1 0 ; renumbered sequentially ............. 4 changes to figure 19 ; added figure 2 0 ....................................... 2 1 changes to epad note in figure 2 1 and figure 2 2 ..................... 22 changes to epad note in table 11 ................................ .................... 2 3 changes to epad note in figure 2 3 ............................................ 25 changes to epad note in table 1 2 .............................................. 26 changes to table 14 ........................................................................ 31 changes to table 15 ........................................................................ 33 changes to table 8 2 ........................................................................ 6 8 add ed table 8 3 , figure 7 3 , figure 7 4 , following text, and table 8 4 ; renumbered sequenti ally .............................................. 6 9 changes to bit 2 descriptio n, table 9 8 ........................................ 71 changes to table 101 ...................................................................... 72 changes to timer2 (wake - up timer) section ........................... 87 changes to figure 9 4 ...................................................................... 9 5 update d outl ine dimensions ........................................................ 9 7 changes to ordering guide .........................................................101 7 /12 rev. d to rev. e changed sclock to sclk when refering to spi clock , spimiso to miso when refering to spi miso, spimosi to mosi when refering to spi mosi, and spicsl to cs when refe ring to spi chip select ............................................... universal changes to table 4 , table 5 , and figure 5 .................................... 11 changes to endnote 1 in table 6 and figure 6 ............................ 12 changes to table 7 and figure 7 ................................................... 13 changes to table 8 and figure 8 ................................................... 14 changes to table 9 and figure 9 ................................................... 15 change d epad note in fig ure 12 and table 11 ......................... 18 change d epad note in figure 13 and table 12 ......................... 2 1 changes to bit 6 in table 18 ........................................................... 4 3 changes to example source c ode ( external crystal selection ) section a nd example source code ( external c lock selection ) section ............................................................................................... 5 5 changes to serial peripheral interface section ........................... 69 changes to spicon[10] and spicon[9] description s in table 123 ............................................................................................ 70 change s to timer interval down equation and added timer interval up equation ...................................................................... 79 added hour:minute:second:1/128 format section ................... 80 changes to table 189 ...................................................................... 8 4 removed cp - 40- 10 package .......................................................... 92 changes to ordering guide ........................................................... 9 6 5 /11 rev. c to rev. d changes to table 4 .......................................................................... 11 changes to table 105 ...................................................................... 67 updated outline dimensions ........................................................ 91 changes to ordering guide ........................................................... 94 12 /09 rev. b to rev. c added aduc7029 part ..................................................... universal added table numbers and renumbered tables ............... universal changes to figure numbers ............................................. universal changes to table 1 ............................................................................ 6 changes to figure 3 ......................................................................... 9 changes to table 3 and figure 4 ................................................... 10 changes to tab le 10 ........................................................................ 16 changes to figure 55 ...................................................................... 53 changes to serial peripheral interface section ........................... 69 changes to table 137 ...................................................................... 73 changes to figure 71 and figure 72 ............................................. 85 changes to figure 73 and figure 74 ............................................. 86 updated outline dimensions ........................................................ 91 changes to ordering guide ........................................................... 94 3/07 rev. a to rev. b added aduc7028 part ..................................................... universal updated format ................................................................. universal changes to figure 2 .......................................................................... 5 changes to table 1 ............................................................................ 6 changes to aduc7026/aduc7027 section ............................... 23 changes to figure 21 ...................................................................... 28 changes to figure 32 caption ....................................................... 30 changes to table 14 ........................................................................ 35 changes to adc circuit overview section ................................ 38 changes to programming section ................................................ 44 changes to flash/ee control interface section .......................... 45 changes to table 24 ........................................................................ 47 changes to rstclr register section .......................................... 48 changes to figure 52 ...................................................................... 49 changes to figure 53 ...................................................................... 50 changes to comparator section ................................................... 50 changes to oscillat or and pll power control section .......... 51 changes to digital peripherals section ........................................ 54 changes to interrupt system section ........................................... 75 changes to timers section ............................................................ 76 changes to external memory interfacing section ..................... 80 added iov dd supply sensitivity section ..................................... 84 changes to order ing guide ........................................................... 90 1/06 rev. 0 to rev. a changes to table 1 ............................................................................ 6 added the flash/ee memory reliability section ....................... 43 changes to table 30 ........................................................................ 52 changes to serial peripheral interface ......................................... 66 changes to ordering guide ........................................................... 90 10/05 revision 0: initial version
aduc7019/20/21/22/24/25/26/27/28/29 data s heet rev. f | page 4 of 104 general description t he aduc7019/20/21/22/24/25/26/27/28 /29 are fully integrated , 1 msps, 12 - bit data acquisition systems incorporating high performance multichannel adcs, 16 - bit/32 - bit mcus, and flash ? /ee memory on a single chip. the adc consists of up to 12 single - ended inpu ts. an additional four inputs are available but are multiplexed with the four dac output pins. the four dac outputs are available only on certain models (aduc7020, aduc7026 , aduc7028, and aduc7029 ). however, in many cases where the dac outputs are not pres ent, these pins can still be used as additional adc inputs, giving a maximum of 16 adc input channels. the adc can operate in single - ended or differential input mode. the adc input voltage is 0 v to v ref . a low drift band gap reference, temperature sensor , and voltage comparator complete the adc peripheral set. depending on the part model, up to four buffered voltage output dacs are available on - chip. the dac output range is programmable to one of three voltage ranges. the devices operate from an on - chip o scillator and a pll generating an internal high frequency clock of 41.78 mhz (uclk) . this clock is routed through a programmable clock divider from which the mcu core clock operating frequency is generated. the microcontroller core is an arm7tdmi ? , 16- bi t/32 - bit risc machine, which offers up to 41 mips peak performance. eight kilobytes of sram and 62 kilobytes of nonvolatile flash/ee memory are provided on - chip. the arm7tdmi core views all memory and registers as a single linear array. on - chip factory fir mware supports in - circuit serial download via the uart or i 2 c serial interface port ; nonintrusive emulation is also supported via the jtag interface. these features are incorporated into a low cost quickstart? development s ystem supporting this microconver ter? family. the parts operate from 2.7 v to 3 .6 v and are specified over an industrial temperature range of ?40c to +125c. when operating at 41.78 mhz, the power dissipation is typically 120 mw. the aduc7019/20/21/22/24/25/26/27/28 /29 are available in a variety of memory models and packages (see ordering guide ) . 1msps 12-bit adc dac0 12-bit dac dac1 dac2 dac3 3-phase pwm (see note 1) aduc7020 xclki xclko rst v ref mux temp sensor band gap ref osc and pll psm por cmp0 cmp1 cmp out pla 4 general- purpose timers 2k 32 sram 31k 16 flash/eeprom serial i/o uart, spi, i 2 c gpio jtag arm7tdmi-based mcu with additional peripherals 12-bit dac 12-bit dac 12-bit dac notes 1. see application note an-798. 04955-101 adc0 to adc4, adc12 to adc15 figure 2.
data sheet aduc7019/20/21/22/24/25/26/27/28/29 rev. f | page 5 of 104 1msps 12-bit adc dac0 12-bit dac dac1 3-phase pwm (see note 1) aduc7021 xclki xclko rst v ref mux temp sensor band gap ref osc and pll psm por cmp0 cmp1 cmp out pla 4 general- purpose timers 2k 32 sram 31k 16 flash/eeprom serial i/o uart, spi, i 2 c gpio jtag arm7tdmi-based mcu with additional peripherals 12-bit dac notes 1. see application note an-798. 04955-102 adc0 to adc7, adc12 to adc13 figure 3. 1msps 12-bit adc 3-phase pwm (see note 1) aduc7022 xclki xclko rst v ref mux temp sensor band gap ref osc and pll psm por cmp0 cmp1 cmp out pla 4 general- purpose timers 2k 32 sram 31k 16 flash/eeprom serial i/o uart, spi, i 2 c gpio jtag arm7tdmi-based mcu with additional peripherals notes 1. see application note an-798. 04955-103 adc0 to adc9 figure 4.
aduc7019/20/21/22/24/25/26/27/28/29 data sheet rev. f | page 6 of 104 1msps 12-bit adc dac0 12-bit dac dac1 pwm0 h pwm0 l pwm1 h pwm1 l pwm2 h pwm2 l 3-phase pwm (see note 1) aduc7024 xclki xclko rst v ref mux temp sensor band gap ref osc and pll psm por cmp0 cmp1 cmp out pla 4 general- purpose timers 2k 32 sram 31k 16 flash/eeprom serial i/o uart, spi, i 2 c gpio jtag arm7tdmi-based mcu with additional peripherals 12-bit dac notes 1. see application note an-798. 04955-104 adc0 to adc9, adc12, adc13 figure 5. 1msps 12-bit adc pwm0 h pwm0 l pwm1 h pwm1 l pwm2 h pwm2 l 3-phase pwm (see note 1) aduc7025 xclki xclko rst v ref mux temp sensor band gap ref osc and pll psm por cmp0 cmp1 cmp out pla 4 general- purpose timers 2k 32 sram 31k 16 flash/eeprom serial i/o uart, spi, i 2 c gpio jtag arm7tdmi-based mcu with additional peripherals notes 1. see application note an-798. 04955-105 adc0 to adc9, adc12, adc13 figure 6.
data sheet aduc7019/20/21/22/24/25/26/27/28/29 rev. f | page 7 of 104 1msps 12-bit adc dac0 12-bit dac dac1 dac2 dac3 pwm0 h pwm0 l pwm1 h pwm1 l pwm2 h pwm2 l 3-phase pwm ext. memory interface aduc7026 xclki xclko rst v ref mux temp sensor band gap ref osc and pll psm por cmp0 cmp1 cmp out pla 4 general- purpose timers 2k 32 sram 31k 16 flash/eeprom serial i/o uart, spi, i 2 c gpio jtag arm7tdmi-based mcu with additional peripherals 12-bit dac 12-bit dac 12-bit dac 04955-106 adc0 to adc15 figure 7. 1msps 12-bit adc pwm0 h pwm0 l pwm1 h pwm1 l pwm2 h pwm2 l 3-phase pwm ext. memory interface aduc7027 xclki xclko rst v ref mux temp sensor band gap ref osc and pll psm por cmp0 cmp1 cmp out pla 4 general- purpose timers 2k 32 sram 31k 16 flash/eeprom serial i/o uart, spi, i 2 c gpio jtag arm7tdmi-based mcu with additional peripherals 04955-107 adc0 to adc15 figure 8.
aduc7019/20/21/22/24/25/26/27/28/29 data sheet rev. f | page 8 of 104 1msps 12-bit adc dac0 12-bit dac dac1 dac2 dac3 pwm0 h pwm0 l pwm1 h pwm1 l pwm2 h pwm2 l 3-phase pwm aduc7028 xclki xclko rst v ref mux temp sensor band gap ref osc and pll psm por cmp0 cmp1 cmp out pla 4 general- purpose timers 2k 32 sram 31k 16 flash/eeprom serial i/o uart, spi, i 2 c gpio jtag arm7tdmi-based mcu with additional peripherals 12-bit dac 12-bit dac 12-bit dac 04955-108 adc0 to adc7, adc12 to adc15 figure 9. 1msps 12-bit adc dac0 12-bit dac dac1 dac2 dac3 pwm0 h pwm0 l pwm1 h pwm1 l pwm2 h pwm2 l 3-phase pwm aduc7029 rst v ref mux temp sensor band gap ref osc and pll psm por cmp0 cmp1 cmp out pla 4 general- purpose timers 2k 32 sram 31k 16 flash/eeprom serial i/o uart, spi, i 2 c gpio jtag arm7tdmi-based mcu with additional peripherals 12-bit dac 12-bit dac 12-bit dac 04955-109 adc0 to adc6, adc12 to adc15 figure 10 .
data sheet aduc7019/20/21/22/24/25/26/27/28/29 rev. f | page 9 of 104 detailed block diagr am 04955-002 77 adc0 78 adc1 79 adc2/cmp0 80 adc3/cmp1 1 adc4 2 adc5 3 adc6 4 adc7 5 adc8 6 adc9 7 adc10 76 adc11 9 adcneg 20 bm/p0.0/cmp out /plai[7]/ms0 18 p4.6/ad14/plao[14] 19 p4.7/ad15/plao[15] * see ordering guide for feature availability on different models. 55 p4.0/ad8/plao[8] 56 p4.1/ad9/plao[9] 63 p4.2/ad10/plao[10] 64 p4.3/ad11/plao[11] 65 p4.4/ad12/plao[12] 66 p4.5/ad13/plao[13] 62 p1.0/t1/spm0/plai[0] 61 p1.1/spm1/plai[1] 60 p1.2/spm2/plai[2] 59 p1.3/spm3/plai[3] 58 p1.4/spm4/plai[4]/irq2 57 p1.5/spm5/plai[5]/irq3 52 p1.6/spm6/plai[6] 14 tms 15 tdi 23 tdo 22 tck 21 p0.6/t1/mrst/plao[3] 49 p2.1/ws/pwm0 h /plao[6] 50 p2.2/rs/pwm0 l /plao[7] 17 p2.3/ae 33 p2.4/pwm0 h /ms0 35 p2.5/pwm0 l /ms1 36 p2.6/pwm1 h /ms2 48 p2.7/pwm1 l /ms3 24 p0.2/pwm2 l /bhe 16 p0.1/pwm2 h /ble 34 p0.3/trst/a16/adc busy 42 p2.0/spm9/plao[5]/conv start 51 p1.7/spm7/plao[0] mux 12-bit voltage output dac buf 10 dac0*/adc12 12-bit voltage output dac buf 11 dac1*/adc13 12-bit voltage output dac buf 12 dac2*/adc14 12-bit voltage output dac buf 13 dac3*/adc15 29 p3.0/ad0/pwm0 h /plai[8] 30 p3.1/ad1/pwm0 l /plai[9] 31 p3.2/ad2/pwm1 h /plai[10] 32 p3.3/ad3/pwm1 l /plai[11] 38 p3.4/ad4/pwm2 h /plai[12] 39 p3.5/ad5/pwm2 l /plai[13] 46 p3.6/ad6/pwm trip /plai[14] 47 p3.7/ad7/pwm sync /plai[15] 44 xclko 45 xclki 40 irq0/p0.4/pwm trip /plao[1]/ms1 41 irq1/p0.5/adc busy /plao[2]/ms2 43 p0.7/eclk/xclk/spm8/plao[4] aduc7026* 69 dac ref 70 dacgnd 75 dacv dd 37 rst 27 lv dd 28 dgnd 54 iov dd 25 iognd 26 iov dd 53 iognd 74 av dd 73 av dd 67 refgnd 71 agnd 72 agnd 8 gnd ref 3-phase pwm dac control arm7tdmi mcu core 62kb flash/ee (31k 16 bits) 8192 bytes user ram (2k 32 bits) wake-up/ rtc timer power supply monitor prog. clock divider jtag emulator downloader prog. logic array spi/i 2 c serial interface serial port multiplexer uart serial port por interrupt controller 12-bit sar adc 1msps adc control pll osc 68 v ref v ref band gap reference cmp out /irq mux dac temp sensor figure 11 .
aduc7019/20/21/22/24/25/26/27/28/29 data sheet rev. f | page 10 of 104 specifications av dd = iov dd = 2.7 v to 3.6 v, v ref = 2.5 v internal reference, f core = 41.78 mhz, t a = ?40c to +125c, unless otherwise noted. table 1 . parameter min typ max unit test conditions/comments adc channel specifications eight acquisition clocks and fadc/2 adc power - up t ime 5 s dc accuracy 1 , 2 resolution 12 bits integral nonlinearity 0.6 1.5 lsb 2.5 v internal reference 1.0 lsb 1.0 v external reference differential nonlinearity 3 , 4 0.5 +1/?0.9 lsb 2.5 v internal reference +0.7/?0.6 lsb 1.0 v external reference dc code distribution 1 lsb adc input is a dc voltage endpoint errors 5 offset error 1 2 lsb offset error match 1 lsb gain error 2 5 lsb gain error match 1 lsb dynamic performance f in = 10 khz sine wave, f sample = 1 msps signal -to - noise ratio (snr) 69 db includes distortion and noise components total harmonic distortion (thd) ?78 db peak harmonic or spurious noise (phsn) ?75 db channel - to - channel crosstalk ?80 db measured on adjacent channels analog input input voltage ranges differential mode v cm 6 v ref /2 v single - ended mode 0 to v ref v leakage c urrent 1 6 a input capacitance 20 pf during adc acquisition on - chip voltage reference 0.47 f from v ref to agnd output voltage 2.5 v accuracy 5 mv t a = 25c reference temperature coefficient 40 ppm/c power supply rejection rati o 75 db output impedance 70 ? t a = 25c internal v ref power - on time 1 ms external reference input input voltage range 0.625 av dd v dac channel specifications r l = 5 k?, c l = 100 pf dc accuracy 7 resolution 12 bits relative accuracy 2 lsb differential nonlinearity 1 lsb guaranteed monotonic offset error 15 mv 2.5 v internal reference gain error 8 1 % gain error mismatch 0.1 % % of full scale on dac0 analog outputs output voltage range_0 0 to dac ref v dac ref range: dacgnd to dacv d d output voltage range_1 0 to 2.5 v output voltage range_2 0 to dacv dd v output impedance 2 ?
data sheet aduc7019/20/21/22/24/25/26/27/28/29 rev. f | page 11 of 104 parameter min typ max unit test conditions/comments dac ac characteristics voltage output settling time 10 s digital -to - analog glitch energy 20 nv - sec 1 lsb change at major carry (where maximum number of bits simultaneously change s in the dacxdat register) comparator input offset vo ltage 15 mv input bias current 1 a input voltage range agnd av dd ? 1.2 v input capacitance 7 pf hysteresis 4 , 6 2 15 mv hysteresis turned on or off via the cmphyst bit in the cmpcon register response time 3 s 100 mv overdrive and configured with cmpres = 11 temperature sensor voltage output at 25c 780 mv voltage tc ?1.3 mv/c accuracy 3 c power supply monitor (psm) iov dd trip point selecti on 2.79 v two selectable trip points 3.07 v power supply trip point accuracy 2.5 % of the selected nominal trip point voltage p ower - on - reset 2.36 v glitch immunity on reset pin 4 50 s watchdog timer (wdt ) timeout period 0 512 sec flash/ee memory endurance 9 10,000 c ycles data retention 10 20 y ears t j = 85c digital inputs all digital inputs excluding xclki and xclko logic 1 input current 0.2 1 a v ih = iov dd or v ih = 5 v logic 0 input current ?40 ?60 a v il = 0 v; except tdi on aduc7019/20/21/22/24/25 /29 ?80 ?120 a v il = 0 v; tdi on aduc7019/20/21/22/24/25 /29 input capacitance 10 pf logic inputs 3 all logic inputs excluding xcl ki v inl , input low voltage 0.8 v v inh , input high voltage 2.0 v logic outputs all digital outputs excluding xclko v oh , output high voltage 2.4 v i source = 1.6 m a v ol , output low voltage 11 0.4 v i sink = 1.6 ma crystal inputs xclki and xc lko logic inputs, xclki only v inl , input low voltage 1.1 v v inh , input high voltage 1.7 v xclki input capacitance 20 pf xclko output capacitance 20 pf internal oscillator 32.768 khz 3 % 2 4 % t a = 0c to 85c range
aduc7019/20/21/22/24/25/26/27/28/29 data sheet rev. f | page 12 of 104 parameter min typ max unit test conditions/comments mcu clock rate from 32 khz internal oscillator 326 khz cd 12 = 7 from 32 khz external crystal 41.78 mhz cd 12 = 0 using an external clock 0.05 44 mhz t a = 85c 0.05 41.78 mhz t a = 125c start - up time cor e clock = 41.78 mhz at power - on 130 ms from pause/nap mode 24 ns cd 12 = 0 3.06 s cd 12 = 7 from sleep mode 1.58 ms from stop mode 1.7 ms programmable logic array (pla) pin propagation delay 12 ns from input pin to output pin element propagation delay 2.5 ns power requirements 13, 14 power supply voltage range av dd to agnd and iov dd to iognd 2.7 3.6 v analog power supply currents av dd current 200 a adc in idle mode; all parts except aduc7019 400 a adc in idle mode; aduc7019 only dacv dd current 15 3 25 a digital power supply current iov dd current in normal mode code executing from flash/ee 7 10 ma cd 12 = 7 11 15 ma cd 12 = 3 40 45 ma cd 12 = 0 (41.78 mhz clock) iov dd current in pause mode 25 30 m a cd 12 = 0 (41.78 mhz clock) iov dd curre nt in sleep mode 250 400 a t a = 85c 600 1000 a t a = 125c additional power supply currents adc 2 ma @ 1 msps 0.7 ma @ 62.5 ksps dac 700 a per dac esd tests 2.5 v reference, t a = 25c hbm passed up t o 4 kv fcidm passed up t o 0.5 kv 1 all adc channel specifications are guaranteed during normal microconverter core operation. 2 apply to all adc input channels. 3 measured using the factory - set default values in the a dc offset register (adcof ) and gain coefficient register (adcgn) . 4 not production tested but supported by design and/or characterization data on production release. 5 measured using the factory - set default values in adcof and adcgn with an external ad845 op amp as an input buffer stage as shown in figure 59 . based on external adc system components ; the user may need to execute a system calibration to remove external endpoint errors an d achieve these specifications (see the calibration section). 6 the input signal can be centered on any dc common - mode voltage ( v cm ) as long as this value is within the adc voltage input range specified. 7 dac linearity is calc ulated using a reduced code range of 100 to 3995. 8 dac gain error is calculated using a reduced code range of 100 to int ernal 2.5 v v ref . 9 endurance is qualified as per jedec standard 22, method a117 and measured at ?40c, +25c, +85c, and +125c. 10 ret ention lifetime equivalent at junction temperature (t j ) = 85c as per jedec standard 22m, method a117. retention lifetime derates with junction temperature. 11 test carried out with a maximum of eight i/os set to a low output level. 12 see the powcon registe r. 13 power supply current consumption is measured in normal, pause, and sleep modes under the following conditions: normal mode wi th 3.6 v supply , pause m o de with 3.6 v supply , and sleep mode with 3.6 v supply . 14 iov dd power supply current decreases typica lly by 2 ma during a flash/ee erase cycle. 15 on the aduc7019/20/21/22, this current must be added to the av dd current.
data sheet aduc7019/20/21/22/24/2 5/26/27/28/29 rev. f | page 13 of 104 timing specifications table 2. external memory write cycle parameter min typ max unit clk 1 uclk t ms_after_clkh 0 4 ns t addr_after_clkh 4 8 ns t ae_h_after_ms ? clk t ae (xmxpar[14:12] + 1) clk t hold_addr_after_ae_l ? clk + (!xmxpar[10]) clk t hold_addr_before_wr_l (!xmxpar[8]) clk t wr_l_after_ae_l ? clk + (!xmxpar[10] + !xmxpar[8]) clk t data_after_wr_l 8 12 ns t wr (xmxpar[7:4] + 1) clk t wr_h_after_clkh 0 4 ns t hold_data_after_wr_h (!xmxpar[8]) clk t ben_after_ae_l ? clk t release_ms_after_wr_h (!xmxpar[8] + 1) clk 1 see table 78. 04955-052 clk clk t ms_after_clkh t ae_h_after_ms t ae t wr_l_after_ae_l msx ae ws rs ad[16:1] ffff 9abc 5678 9abe 1234 ble bhe a16 t wr t wr_h_after_clkh t hold_data_after_wr_h t hold_addr_after_ae_l t hold_addr_before_wr_l t data_after_wr_l t ben_after_ae_l t addr_after_clkh t release_ms_after_wr_h figure 12. external memory write cycle (see table 78)
aduc7019/20/21/22/24/2 5/26/27/28/29 data sheet rev. f | page 14 of 104 table 3. external memory read cycle parameter min typ max unit clk 1 1/md clock ns typ (powcon[2:0] + 1) t ms_after_clkh 4 8 ns t addr_after_clkh 4 16 ns t ae_h_after_ms ? clk t ae (xmxpar[14:12] + 1) clk t hold_addr_after_ae_l ? clk + (! xmxpar[10] ) clk t rd_l_after_ae_l ? clk + (! xmxpar[10]+ ! xmxpar[9] ) clk t rd_h_after_clkh 0 4 t rd (xmxpar[3:0] + 1) clk t data_before_rd_h 16 ns t data_after_rd_h 8 + (! xmxpar[9]) clk t release_ms_after_rd_h 1 clk 1 see table 78. 04955-053 eclk msx ae ws rs ad[16:1] bhe ble a16 ffff 2348 xxxx cdef xx 234a xx 89ab clk t ae_h_after_ms t ae t hold_addr_after_ae_l t rd_l_after_ae_l t rd t rd_h_after_clkh t addr_after_clkh t release_ms_after_rd_h t data_before_rd_h t data_after_rd_h t ms_after_clkh figure 13. external memory read cycle (see table 78)
data sheet aduc7019/20/21/22/24/2 5/26/27/28/29 rev. f | page 15 of 104 table 4. i 2 c timing in fast mode (400 khz) slave master parameter description min max typ unit t l scl low pulse width 1 200 1360 ns t h scl high pulse width 1 100 1140 ns t shd start condition hold time 300 ns t dsu data setup time 100 740 ns t dhd data hold time 0 400 ns t rsu setup time for repeated start 100 ns t psu stop condition setup time 100 400 ns t buf bus-free time between a stop condit ion and a start condition 1.3 ? s t r rise time for both scl and sda 300 200 ns t f fall time for both scl and sda 300 ns t sup pulse width of spike suppressed 50 ns 1 t hclk depends on the clock divider or cd bits in the powcon mmr. t hclk = t uclk /2 cd ; see figure 67. table 5. i 2 c timing in standa rd mode (100 khz) slave master parameter description min max typ unit t l scl low pulse width 1 4.7 s t h scl high pulse width 1 4.0 ns t shd start condition hold time 4.0 s t dsu data setup time 250 ns t dhd data hold time 0 3.45 s t rsu setup time for repeated start 4.7 s t psu stop condition setup time 4.0 s t buf bus-free time between a stop conditio n and a start condition 4.7 s t r rise time for both scl and sda 1 s t f fall time for both scl and sda 300 ns 1 t hclk depends on the clock divider or cd bits in the powcon mmr. t hclk = t uclk /2 cd ; see figure 67. 0 4955-054 sda (i/o) t buf msb lsb ack msb 1 9 8 2?7 1 scl (i) ps stop condition start condition s(r) repeated start t sup t r t f t f t r t h t l t sup t dsu t dhd t rsu t dhd t dsu t shd t psu figure 14. i 2 c compatible interface timing
aduc7019/20/21/22/24/2 5/26/27/28/29 data sheet rev. f | page 16 of 104 table 6. spi master mode timing (phase mode = 1) parameter description min typ max unit t sl sclk low pulse width 1 (spidiv + 1) t hclk ns t sh sclk high pulse width 1 (spidiv + 1) t hclk ns t dav data output valid after sclk edge 25 ns t dsu data input setup time before sclk edge 2 1 t uclk ns t dhd data input hold time after sclk edge 2 2 t uclk ns t df data output fall time 5 12.5 ns t dr data output rise time 5 12.5 ns t sr sclk rise time 5 12.5 ns t sf sclk fall time 5 12.5 ns 1 t hclk depends on the clock divider or cd bits in the powconmmr. t hclk = t uclk /2 cd ; see figure 67. 2 t uclk = 23.9 ns. it corresponds to the 41.78 mhz internal cloc k from the pll before the clock divider; see figure 67. 0 4955-055 sclk (polarity = 0) sclk (polarity = 1) mosi msb bits 6 to 1 lsb miso msb in bits 6 to 1 lsb in t sh t sl t sr t sf t dr t df t dav t dsu t dhd figure 15. spi master mode timing (phase mode = 1)
data sheet aduc7019/20/21/22/24/2 5/26/27/28/29 rev. f | page 17 of 104 table 7. spi master mode timing (phase mode = 0) parameter description min typ max unit t sl sclk low pulse width 1 (spidiv + 1) t hclk ns t sh sclk high pulse width 1 (spidiv + 1) t hclk ns t dav data output valid after sclk edge 25 ns t dosu data output setup before sclk edge 75 ns t dsu data input setup time before sclk edge 2 1 t uclk ns t dhd data input hold time after sclk edge 2 2 t uclk ns t df data output fall time 5 12.5 ns t dr data output rise time 5 12.5 ns t sr sclk rise time 5 12.5 ns t sf sclk fall time 5 12.5 ns 1 t hclk depends on the clock divider or cd bits in the powconmmr. t hclk = t uclk /2 cd ; see figure 67. 2 t uclk = 23.9 ns. it corresponds to the 41.78 mhz internal cloc k from the pll before the clock divider; see figure 67. 04955-056 sclk (polarity = 0) sclk (polarity = 1) t sh t sl t sr t sf mosi msb bits 6 to 1 lsb miso msb in bits 6 to 1 lsb in t dr t df t dav t dosu t dsu t dhd figure 16. spi master mode timing (phase mode = 0)
aduc7019/20/21/22/24/2 5/26/27/28/29 data sheet rev. f | page 18 of 104 table 8. spi slave mode timing (phsae mode = 1) parameter description min typ max unit t cs cs to sclk edge 1 (2 t hclk ) + (2 t uclk ) ns t sl sclk low pulse width 2 (spidiv + 1) t hclk ns t sh sclk high pulse width 2 (spidiv + 1) t hclk ns t dav data output valid after sclk edge 25 ns t dsu data input setup time before sclk edge 1 1 t uclk ns t dhd data input hold time after sclk edge 1 2 t uclk ns t df data output fall time 5 12.5 ns t dr data output rise time 5 12.5 ns t sr sclk rise time 5 12.5 ns t sf sclk fall time 5 12.5 ns t sfs cs high after sclk edge 0 ns 1 t uclk = 23.9 ns. it corresponds to the 41.78 mhz internal cloc k from the pll before the clock divider; see figure 67. 2 t hclk depends on the clock divider or cd bits in the powconmmr. t hclk = t uclk /2 cd ; see figure 67. 04955-057 sclk (polarity = 0) cs sclk (polarity = 1) t sh t sl t sr t sf t sfs miso msb bits 6 to 1 lsb mosi msb in bits 6 to 1 lsb in t dhd t dsu t dav t dr t df t cs figure 17. spi slave mode timing (phase mode = 1)
data sheet aduc7019/20/21/22/24/2 5/26/27/28/29 rev. f | page 19 of 104 table 9. spi slave mode timing (phase mode = 0) parameter description min typ max unit t cs cs to sclk edge 1 (2 t hclk ) + (2 t uclk ) ns t sl sclk low pulse width 2 (spidiv + 1) t hclk ns t sh sclk high pulse width 2 (spidiv + 1) t hclk ns t dav data output valid after sclk edge 25 ns t dsu data input setup time before sclk edge 1 1 t uclk ns t dhd data input hold time after sclk edge 1 2 t uclk ns t df data output fall time 5 12.5 ns t dr data output rise time 5 12.5 ns t sr sclk rise time 5 12.5 ns t sf sclk fall time 5 12.5 ns t docs data output valid after cs edge 25 ns t sfs cs high after sclk edge 0 ns 1 t uclk = 23.9 ns. it corresponds to the 41.78 mhz internal cloc k from the pll before the clock divider; see figure 67. 2 t hclk depends on the clock divider or cd bits in the powconmmr. t hclk = t uclk /2 cd ; see figure 67. 04955-058 sclk (polarity = 0) cs sclk (polarity = 1) t sh t sl t sr t sf t sfs miso mosi msb in bits 6 to 1 lsb in t dhd t dsu msb bits 6 to 1 lsb t docs t dav t dr t df t cs figure 18. spi slave mode timing (phase mode = 0)
aduc7019/20/21/22/24/25/26/27/28/29 data sheet rev. f | page 20 of 104 ab solute maximum ratings agnd = refgnd = dacgnd = gnd ref , t a = 25c, unless otherwise noted. table 10. stresses above those listed under absolute maximum ratings may cause permanent damage to the device. this is a stress rating only; functional operation of the device at these or any other conditions above those indicated in the operational section of this specification is not implied. exposure to absolute maximum rating conditions for extended periods may affect device reliability. only one absolute maximum rating can be applied at any one time. esd caution parameter rating av dd to iov dd ?0.3 v to +0.3 v agnd to dgnd ?0.3 v to +0.3 v iov dd to iognd, av dd to agnd ?0.3 v to +6 v digital input voltage to iognd ?0.3 v to +5.3 v digital output voltage to iognd ?0.3 v to iov dd + 0.3 v v ref to agnd ?0.3 v to av dd + 0.3 v analog inputs to ag nd ?0.3 v to av dd + 0.3 v analog outputs to agnd ?0.3 v to av dd + 0.3 v operating temperature range, industrial C 40c to +125c storage temperature range C 65c to +150c junction temperature 150c ja thermal impedance 40- lead lfcsp 26 c/w 49- bal l csp_bga 80 c/w 64- lead lfcsp 24 c/w 64- ball csp_bga 75 c/w 64- lead lqfp 47 c/w 80- lead lqfp 38 c/w peak solder reflow temperature snpb assemblies (10 sec to 30 sec) 240c rohs compliant assemblies (20 sec to 40 sec) 260c
data sheet aduc7019/20/21/22/24/25/26/27/28/29 rev. f | page 21 of 104 pin configurations a nd function descript ions ad u c7019/ad u c7020/ad u c7021/ad u c7022 aduc7019 top view (not to scale) 1 2 3 4 5 6 7 8 9 10 adc3/cmp1 adc4 notes 1. the exposed pad must be soldered for mechanical purposes and left unconnected. gnd ref dac0/adc12 dac1/adc13 dac2/adc14 dac3/adc15 tms tdi bm/p0.0/cmp out /plai[7] p1.3/spm3/plai[3] p1.4/spm4/plai[4]/irq2 p1.5/spm5/plai[5]/irq3 p1.6/spm6/plai[6] p1.7/spm7/plao[0] xclki xclko p0.7/eclk/xclk/spm8/plao[4] p2.0/spm9/plao[5]/conv start irq1/p0.5/adc busy /plao[2] 30 29 28 27 26 25 24 23 22 21 11 12 13 14 15 16 17 18 19 20 p0.6/t1/mrst/plao[3] tck tdo iognd iov dd lv dd dgnd p0.3/trst/adc busy rst irq0/p0.4/pwm trip /plao[1] adc2/cmp0 adc1 adc0 av dd agnd v ref p4.2/plao[10] p1.0/t1/spm0/plai[0] p1.1/spm1/plai[1] p1.2/spm2/plai[2] 40 39 38 37 36 35 34 33 32 31 04955-064 figure 19 . 40 - lead lfcsp _vq pin configuration (aduc7019 ) 04955-090 notes 1. the exposed pad must be soldered for mechanical purposes and left unconnected. adc3/cmp1 adc4 gnd ref dac0/adc12 dac1/adc13 dac2/adc14 dac3/adc15 tms tdi bm/p0.0/cmp out /plai[7] adc2/cmp0 adc1 adc0 av dd agnd v ref p4.2/plao[10] p1.0/t1/spm0/plai[0] p1.1/spm1/plai[1] p1.2/spm2/plai[2] p0.6/t1/mrst/plao[3] tck tdo iognd iov dd lv dd dgnd p0.3/trst/adc busy rst irq0/p0.4/pwm trip /plao[1] p1.3/spm3/plai[3] p1.4/spm4/plai[4]/irq2 p1.5/spm5/plai[5]/irq3 p1.6/spm6/plai[6] p1.7/spm7/plao[0] xclki xclko p0.7/eclk/xclk/spm8/plao[4] p2.0/spm9/plao[5]/conv start irq1/p0.5/adc busy /plao[2] 1 2 3 4 5 6 7 8 9 10 23 24 25 26 27 28 29 30 22 21 11 12 13 15 17 16 18 19 20 14 33 34 35 36 37 38 39 40 32 31 aduc7020 top view (not to scale) figure 20 . 40 - lead lfcsp_wq pin configuration (aduc7020 )
aduc7019/20/21/22/24/25/26/27/28/29 data sheet rev. f | page 22 of 104 04955-065 aduc7021 top view (not to scale) pin 1 indicator 1 2 3 4 5 6 7 8 9 10 adc4 adc5 adc6 adc7 gnd ref dac0/adc12 dac1/adc13 tms tdi bm/p0.0/cmp out /plai[7] p1.3/spm3/plai[3] p1.4/spm4/plai[4]/irq2 p1.5/spm5/plai[5]/irq3 p1.6/spm6/plai[6] p1.7/spm7/plao[0] xclki xclko p0.7/eclk/xclk/spm8/plao[4] p2.0/spm9/plao[5]/conv start irq1/p0.5/adc busy /plao[2] 30 29 28 27 26 25 24 23 22 21 11 12 13 14 15 16 17 18 19 20 p0.6/t1/mrst/plao[3] tck tdo iognd iov dd lv dd dgnd p0.3/trst/adc busy rst irq0/p0.4/pwm trip /plao[1] adc3/cmp1 adc2/cmp0 adc1 adc0 av dd agnd v ref p1.0/t1/spm0/plai[0] p1.1/spm1/plai[1] p1.2/spm2/plai[2] 40 39 38 37 36 35 34 33 32 31 notes 1. the exposed pad must be soldered for mechanical purposes and left unconnected. figure 21 . 40 - lead lfcsp_vq pin c onfiguration (aduc7021) 04955-066 aduc7022 top view (not to scale) pin 1 indicator 1 2 3 4 5 6 7 8 9 10 adc5 adc6 adc7 adc8 adc9 gnd ref tms tdi bm/p0.0/cmp out /plai[7] p0.6/t1/mrst/plao[3] p1.2/spm2/plai[2] p1.3/spm3/plai[3] p1.4/spm4/plai[4]/irq2 p1.5/spm5/plai[5]/irq3 p1.6/spm6/plai[6] p1.7/spm7/plao[0] xclki xclko p0.7/eclk/xclk/spm8/plao[4] p2.0/spm9/plao[5]/conv start 30 29 28 27 26 25 24 23 22 21 11 12 13 14 15 16 17 18 19 20 tck tdo iognd iov dd lv dd dgnd p0.3/trst/adc busy rst irq0/p0.4/pwm trip /plao[1] irq1/p0.5/adc busy /plao[2] adc4 adc3/cmp1 adc2/cmp0 adc1 adc0 av dd agnd v ref p1.0/t1/spm0/plai[0] p1.1/spm1/plai[1] 40 39 38 37 36 35 34 33 32 31 notes 1. the exposed pad must be soldered for mechanical purposes and left unconnected. figure 22 . 40 - lead lfcsp_vq pin configuration (aduc7022)
data sheet aduc7019/20/21/22/24/25/26/27/28/29 rev. f | page 23 of 104 table 11 . pin function descriptions (aduc7019/aduc7020/aduc7021/aduc7022) pin no. 7019/7020 7021 7022 mnemonic desc ription 38 37 36 adc0 single - ended or differential analog input 0. 39 38 37 adc1 single - ended or differential analog input 1. 40 39 38 adc2/cmp0 single - ended or differential analog input 2/comparator positive input. 1 40 39 adc3/cmp1 single - ended or di fferential analog input 3 (buffered input on aduc7019)/ comparator negative input. 2 1 40 adc4 single - ended or differential analog input 4. ? 2 1 adc5 single - ended or differential analog input 5. ? 3 2 adc6 single - ended or differential analog input 6. ? 4 3 adc7 single - ended or differential analog input 7. ? ? 4 adc8 single - ended or differential analog input 8. ? ? 5 adc9 single - ended or differential analog input 9. 3 5 6 gnd ref ground voltage reference for the adc. for optimal performance, the analo g power supply should be separated from iognd and dgnd. 4 6 ? dac0/adc12 dac0 voltage output/single - ended or differential analog input 12. 5 7 ? dac1/adc13 dac1 voltage output/single - ended or differential analog input 13. 6 ? ? dac2/adc14 dac2 voltage o utput/single - ended or differential analog input 14. 7 ? ? dac3/adc15 dac3 voltage output on aduc7020. on the aduc7019, a 10 nf capacitor must be connected between this pin and agnd/single - ended or differential analog input 15 (see figure 53) . 8 8 7 tms test mode select, jtag test port input. debug and download access. this pin has an internal pull - up resistor to iov dd . in some cases , an external pull - up resistor (~100k) is also required to ensure that the part does not enter an e rroneous state. 9 9 8 tdi test data in, jtag test port input. debug and download access. 10 10 9 bm/p0.0/cmp out /plai[7] multifunction i/o pin. boot mode (bm). the aduc7019/20/21/22 enter serial download mode if bm is low at reset and execute code if bm i s pulled high at reset through a 1 k ? resistor/general - purpose input and output port 0.0/voltage comparator output/programmable logic array input element 7. 11 11 10 p0.6/t1/mrst/plao[3] multifunction pin. driven low after reset. general - purpose output po rt 0.6/ timer1 input/power - on reset output/programmable logic array output element 3. 12 12 11 tck test clock, jtag test port input. debug and download access. this pin has an internal pull - up resistor to iov dd . in some cases an external pull - up resistor (~100k) is also required to ensure that the part does not enter an erroneous state. 13 13 12 tdo test data out, jtag test port output. debug and download access. 14 14 13 iognd ground for gpio (see table 78) . typically connected to dgnd. 15 15 14 iov dd 3.3 v supply for gpio (see table 78) and input of the on - chip voltage regulator. 16 16 15 lv dd 2.6 v output of the on - chip voltage regulator. this output must be connected to a 0.47 f capacitor to dgnd only. 17 17 16 dgnd ground for core logic. 18 18 17 p0.3/trst/adc busy general - purpose input and output port 0.3/test reset, jtag test port input/ adc busy signal output. 19 19 18 rst reset input, active low. 20 20 19 irq0/p0.4/pwm trip /plao[1] multifunction i/o pin. external interrupt request 0, active high/general - purpose input and output port 0.4/pwm trip external input/programmable logic array output element 1. 21 21 20 irq1/p0.5/adc busy /plao[2] multifunction i/o pin. external inter rupt request 1, active high/general - purpose input and output port 0.5/adc busy signal output/programmable logic array output element 2.
aduc7019/20/21/22/24/25/26/27/28/29 data sheet rev. f | page 24 of 104 pin no. 7019/7020 7021 7022 mnemonic desc ription 22 22 21 p2.0/spm9/plao[5]/ conv start serial port multiplexed. general - purpose input and output port 2. 0/uart/ program mable logic array output element 5/start conversion input signal for adc. 23 23 22 p0.7/eclk/xclk/spm8/plao[4] serial port multiplexed. general - purpose input and output port 0.7/ output for external clock signal/input to the internal clock generator circuits/uart/ programmable logic array output element 4. 24 24 23 xclko output from the crystal oscillator inverter. 25 25 24 xclki input to the crystal oscillator inverter and input to the internal clock generator circuits. 26 26 25 p1.7/sp m7/plao[0] serial port multiplexed. general - purpose input and output port 1.7/uart, spi/programmable logic array output element 0. 27 27 26 p1.6/spm6/plai[6] serial port multiplexed. general - purpose input and output port 1.6/uart, spi/programmable logic a rray input element 6. 28 28 27 p1.5/spm5/plai[5]/irq3 serial port multiplexed. general - purpose input and output port 1.5/uart, spi/programmable logic array input element 5/external interrupt request 3, active high. 29 29 28 p1.4/spm4/plai[4]/irq2 serial port multiplexed. general - purpose input and output port 1.4/uart, spi/programmable logic array input element 4/external interrupt request 2, active high. 30 30 29 p1.3/spm3/plai[3] serial port multiplexed. general - purpose input and output port 1.3/uart, i 2c1/programmable logic array input element 3. 31 31 30 p1.2/spm2/plai[2] serial port multiplexed. general - purpose input and output port 1.2/uart, i2c1/programmable logic array input element 2. 32 32 31 p1.1/spm1/plai[1] serial port multiplexed. general - p urpose input and output port 1.1/uart, i2c0/programmable logic array input element 1. 33 33 32 p1.0/t1/spm0/plai[0] serial port multiplexed. general - purpose input and output port 1.0/ timer1 input/ uart, i2c0/programmable logic array input element 0. 34 ? ? p4.2/plao[10] general - purpose input and output port 4.2/programmable logic array output element 10. 35 34 33 v ref 2.5 v internal voltage reference. must be connected to a 0.47 f capacitor when using the internal reference. 36 35 34 agnd analog ground . ground reference point for the analog circuitry. 37 36 35 av dd 3.3 v analog power. 0 0 0 ep exposed pad . the pin configuration for the aduc7019/aduc7020/ aduc7021/aduc7022 has an expo s ed pad that must be soldered for mechanical purposes and left unconn ected.
data sheet aduc7019/20/21/22/24/25/26/27/28/29 rev. f | page 25 of 104 ad u c7024/ad u c7025 04955-067 1 adc4 2 adc5 3 adc6 4 adc7 5 adc8 6 adc9 7 gnd ref 8 adcneg 9 dac0/adc12 10 dac1/adc13 11 tms 12 tdi 13 p4.6/plao[14] 14 p4.7/plao[15] 15 bm/p0.0/cmp out /plai[7] 16 p0.6/t1/mrst/plao[3] 48 p1.2/spm2/plai[2] 47 p1.3/spm3/plai[3] 46 p1.4/spm4/plai[4]/irq2 45 p1.5/spm5/plai[5]/irq3 44 p4.1/plao[9] 43 p4.0/plao[8] 42 iov dd 41 iognd 40 p1.6/spm6/plai[6] 39 p1.7/spm7/plao[0] 38 p3.7/pwm sync /plai[15] 37 p3.6/pwm trip /plai[14] 36 xclki 35 xclko 34 p0.7/eclk/xclk/spm8/plao[4] 33 p2.0/spm9/plao[5]/conv start 64 adc3/cmp1 63 adc2/cmp0 62 adc1 61 adc0 60 dacv dd 59 av dd 58 agnd 57 dacgnd 56 dac ref 55 v ref 54 p4.5/plao[13] 53 p4.4/plao[12] 52 p4.3/plao[11] 51 p4.2/plao[10] 50 p1.0/t1/spm0/plai[0] 49 p1.1/spm1/plai[1] top view (not to scale) aduc7024/ aduc7025 pin 1 indicator 17 tck 18 tdo 19 iognd 20 iov dd 21 lv dd 22 dgnd 23 p3.0/pwm0 h /plai[8] 24 p3.1/pwm0 l /plai[9] 25 p3.2/pwm1 h /plai[10] 26 p3.3/pwm1 l /plai[11] 27 p0.3/trst/adc busy 28 rst 29 p3.4/pwm2 h /plai[12] 30 p3.5/pwm2 l /plai[13] 31 irq0/p0.4/pwm trip /plao[1] 32 irq1/p0.5/adc busy /plao[2] notes 1. the exposed pad must be soldered for mechanical purposes and left unconnected. figure 23 . 64 - lead lfcsp_vq pin configuration (aduc7024/aduc7025) 04955-068 1 adc4 2 adc5 3 adc6 4 adc7 5 adc8 6 adc9 7 gnd ref 8 adcneg 9 dac0/adc12 10 dac1/adc13 11 tms 12 tdi 13 p4.6/plao[14] 14 p4.7/plao[15] 15 bm/p0.0/cmp out /plai[7] 16 p0.6/t1/mrst/plao[3] 48 p1.2/spm2/plai[2] 47 p1.3/spm3/plai[3] 46 p1.4/spm4/plai[4]/irq2 45 p1.5/spm5/plai[5]/irq3 44 p4.1/plao[9] 43 p4.0/plao[8] 42 iov dd 41 iognd 40 p1.6/spm6/plai[6] 39 p1.7/spm7/plao[0] 38 p3.7/pwm sync /plai[15] 37 p3.6/pwm trip /plai[14] 36 xclki 35 xclko 34 p0.7/eclk/xclk/spm8/plao[4] 33 p2.0/spm9/plao[5]/conv start 17 tck 18 tdo 19 iognd 20 iov dd 21 lv dd 22 dgnd 23 p3.0/pwm0 h /plai[8] 24 p3.1/pwm0 l /plai[9] 25 p3.2/pwm1 h /plai[10] 26 p3.3/pwm1 l /plai[11] 27 p0.3/trst/adc busy 28 rst 29 p3.4/pwm2 h /plai[12] 30 p3.5/pwm2 l /plai[13] 31 irq0/p0.4/pwm trip /plao[1] 32 irq1/p0.5/adc busy /plao[2] 64 adc3/cmp1 63 adc2/cmp0 62 adc1 61 adc0 60 dacv dd 59 av dd 58 agnd 57 dacgnd 56 dac ref 55 v ref 54 p4.5/plao[13] 53 p4.4/plao[12] 52 p4.3/plao[11] 51 p4.2/plao[10] 50 p1.0/t1/spm0/plai[0] 49 p1.1/spm1/plai[1] top view (not to scale) aduc7024/ aduc7025 pin 1 indicator figure 24 . 64 - lead lqfp pin configuration (aduc7024/aduc7025)
aduc7019/20/21/22/24/25/26/27/28/29 data sheet rev. f | page 26 of 104 table 12 . pin function descriptions (aduc7024/aduc7025 64 - lead lfcsp_vq and 64 - lead lqfp) pin no. mnemonic description 1 adc4 single - ended or differential analog input 4. 2 adc5 single - ended or differential analog input 5. 3 adc6 single - ended or differential analog input 6. 4 adc7 single - ended or differential analog input 7. 5 adc8 single - ended or differential analog input 8. 6 adc9 single - ended or differential analog input 9. 7 gnd ref ground voltage reference for the adc. for optimal performance, the analog power supply should be separated from iognd and dgnd. 8 adcneg bias point or negative analog input of the adc in pseudo differential mode. must be connected to the ground of the signal to convert. this bias point must be between 0 v and 1 v. 9 dac0/adc12 dac0 voltage output/single - ended or differential analog input 12. dac outputs are not present on the aduc7025. 10 dac1/adc13 dac1 voltage output/single - ended or differential analog input 13. dac outputs are not present on the aduc7025. 11 tms jtag test port input, t est mode select. debug and download access. 12 tdi jtag test port input, test data in. debug and download access 13 p4.6/plao[14] general - purpose input and output port 4.6/programmable logic array output element 14. 14 p4.7/plao[15] general - purpose inpu t and output port 4.7/programmable logic array output element 15. 15 bm/p0.0/cmp out /plai[7] multifunction i/o pin. boot mode. the aduc7024/aduc7025 enter download mode if bm is low at reset and execute code if bm is pulled high at reset through a 1 k ? resistor/general - purpose input and output port 0.0/voltage comparator output/programmable logic array input element 7. 16 p0.6/t1/mrst/plao[3] multifunction pin, driven low after reset. general - purpose output port 0.6/timer1 input/power- on reset output/ programmable logic array output element 3. 17 tck jtag test port input, test clock. debug and download access. 18 tdo jtag test port output, test data out. debug and download access. 19 iognd ground for gpio (see table 78). typ ically connected to dgnd. 20 iov dd 3.3 v supply for gpio (see table 78) and input of the on - chip voltage regulator. 21 lv dd 2.6 v output of the on - chip voltage regulator. this output must be connected to a 0.47 f capacitor to d gnd only. 22 dgnd ground for core logic. 23 p3.0/pwm0 h /plai[8] general - purpose input and output port 3.0/pwm phase 0 high - side output/programmable logic array input element 8. 24 p3.1/pwm0 l /plai[9] general - purpose input and output port 3.1/pwm phase 0 l ow - side output/programmable logic array input element 9. 25 p3.2/pwm1 h /plai[10] general - purpose input and output port 3.2/pwm phase 1 high - side output/programmable logic array input element 10. 26 p3.3/pwm1 l /plai[11] general - purpose input and output port 3.3/pwm phase 1 low - side output/programmable logic array input element 11. 27 p0.3/trst/adc busy general - purpose input and output port 0.3/jtag test port input, test reset/adc busy signal output. 28 rst reset input, active low. 29 p3.4 /pwm2 h /plai[12] general - purpose input and output port 3.4/pwm phase 2 high - side output/programmable logic array input 12. 30 p3.5/pwm2 l /plai[13] general - purpose input and output port 3.5/pwm phase 2 low - side output/programmable logic array input element 1 3. 31 irq0/p0.4/pwm trip /plao[1] multifunction i/o pin. external interrupt request 0, active high/general - purpose input and output port 0.4/pwm trip external input/programmable logic array output element 1. 32 irq1/p0.5/adc busy /plao[2] multifunction i/o p in. external interrupt request 1, active high/general - purpose input and output port 0.5/adc busy signal output/programmable logic array output element 2. 33 p2.0/spm9/plao[5]/ conv start serial port multiplexed. general - purpose input and ou tput port 2.0/uart/programmable logic array output element 5/start conversion input signal for adc. 34 p0.7/eclk/xclk/spm8/plao[4] serial port multiplexed. general - purpose input and output port 0.7/output for external clock signal/input to the internal cl ock generator circuits/uart/programmable logic array output element 4. 35 xclko output from the crystal oscillator inverter. 36 xclki input to the crystal oscillator inverter and input to the internal clock generator circuits.
data sheet aduc7019/20/21/22/24/25/26/27/28/29 rev. f | page 27 of 104 pin no. mnemonic description 37 p3.6/pwm trip /plai[14] g eneral - purpose input and output port 3.6/pwm safety cutoff/programmable logic array input element 14. 38 p3.7/pwm sync /plai[15] general - purpose input and output port 3.7/pwm synchronization input and output/ programmable logic array input element 15. 39 p 1.7/spm7/plao[0] serial port multiplexed. general - purpose input and output port 1.7/uart, spi/programmable logic array output element 0. 40 p1.6/spm6/plai[6] serial port multiplexed. general - purpose input and output port 1.6/uart, spi/programmable logic a rray input element 6. 41 iognd ground for gpio (see table 78) . typically connected to dgnd. 42 iov dd 3.3 v supply for gpio (see table 78) and input of the on - chip voltage regulator. 43 p4.0/plao[8] gen eral - purpose input and output port 4.0/programmable logic array output element 8. 44 p4.1/plao[9] general - purpose input and output port 4.1/programmable logic array output element 9. 45 p1.5/spm5/plai[5]/irq3 serial port multiplexed. general - purpose inpu t and output port 1.5/uart, spi/programmable logic array input element 5/ external interrupt request 3, active high. 46 p1.4/spm4/plai[4]/irq2 serial port multiplexed. general - purpose input and output port 1.4/uart, spi/programmable logic array input eleme nt 4/ external interrupt request 2, active high. 47 p1.3/spm3/plai[3] serial port multiplexed. general - purpose input and output port 1.3/uart, i2c1/programmable logic array input element 3. 48 p1.2/spm2/plai[2] serial port multiplexed. general - purpose inp ut and output port 1.2/uart, i2c1/programmable logic array input element 2. 49 p1.1/spm1/plai[1] serial port multiplexed. general - purpose input and output port 1.1/uart, i2c0/programmable logic array input element 1. 50 p1.0/t1/spm0/plai[0] serial port m ultiplexed. general - purpose input and output port 1.0/timer1 input/uart, i2c0/ programmable logic array input element 0. 51 p4.2/plao[10] general - purpose input and output port 4.2/programmable logic array output element 10. 52 p4.3/plao[11] general - purpo se input and output port 4.3/programmable logic array output element 11. 53 p4.4/plao[12] general - purpose input and output port 4.4/programmable logic array output element 12. 54 p4.5/plao[13] general - purpose input and output port 4.5/programmable logic array output element 13. 55 v ref 2.5 v internal voltage reference. must be connected to a 0.47 f capacitor when using the internal reference. 56 dac ref external voltage reference for the dacs. range: dacgnd to dacv dd . 57 dacgnd ground for the dac. typi cally connected to agnd. 58 agnd analog ground. ground reference point for the analog circuitry. 59 av dd 3.3 v analog power. 60 dacv dd 3.3 v power supply for the da cs. must be connected to av dd . 61 adc0 single - ended or differential analog input 0. 62 adc1 single - ended or differential analog input 1. 63 adc2/cmp0 single - ended or differential analog input 2/comparator positive input. 64 adc3/cmp1 single - ended or differential analog input 3/comparator negative input. 0 ep exposed pad. th e pin configura tion for the aduc7024/aduc7025 lfcsp_vq has an expo s ed pad that must be soldered for mechanical purposes and left unconnected.
aduc7019/20/21/22/24/25/26/27/28/29 data sheet rev. f | page 28 of 104 ad u c7026/ad u c7027 04955-069 1 adc4 2 adc5 3 adc6 4 adc7 5 adc8 6 adc9 7 adc10 8 gnd ref 9 adcneg 10 dac0/adc12 11 dac1/adc13 12 dac2/adc14 13 dac3/adc15 14 tms 15 tdi 16 p0.1/pwm2 h /ble 17 p2.3/ae 18 p4.6/ad14/plao[14] 19 p4.7/ad15/plao[15] 20 bm/p0.0/cmp out /plai[7]/ms0 60 p1.2/spm2/plai[2] 59 p1.3/spm3/plai[3] 58 p1.4/spm4/plai[4]/irq2 57 p1.5/spm5/plai[5]/irq3 56 p4.1/ad9/plao[9] 55 p4.0/ad8/plao[8] 54 iov dd 53 iognd 52 p1.6/spm6/plai[6] 51 p1.7/spm7/plao[0] 50 p2.2/rs/pwm0 l /plao[7] 49 p2.1/ws/pwm0 h /plao[6] 48 p2.7/pwm1 l /ms3 47 p3.7/ad7/pwm sync /plai[15] 46 p3.6/ad6/pwm trip /plai[14] 45 xclki 44 xclko 43 p0.7/eclk/xclk/spm8/plao[4] 42 p2.0/spm9/plao[5]/conv start 41 irq1/p0.5/adc busy /plao[2]/ms2 21 p0.6/t1/mrst/plao[3] 22 tck 23 tdo 24 p0.2/pwm2 l /bhe 25 iognd 26 iov dd 27 lv dd 28 dgnd 29 p3.0/ad0/pwm0 h /plai[8] 30 p3.1/ad1/pwm0 l /plai[9] 31 p3.2/ad2/pwm1 h /plai[10] 32 p3.3/ad3/pwm1 l /plai[11] 33 p2.4/pwm0 h /ms0 34 p0.3/trst/a16/adc busy 35 p2.5/pwm0 l /ms1 36 p2.6/pwm1 h /ms2 37 rst 38 p3.4/ad4/pwm2 h /plai[12] 39 p3.5/ad5/pwm2 l /plai[13] 40 irq0/p0.4/pwm trip /plao[1]/ms1 80 adc3/cmp1 79 adc2/cmp0 78 adc1 77 adc0 76 adc11 75 dacv dd 74 av dd 73 av dd 72 agnd 71 agnd 70 dacgnd 69 dac ref 68 v ref 67 refgnd 66 p4.5/ad13/plao[13] 65 p4.4/ad12/plao[12] 64 p4.3/ad11/plao[11] 63 p4.2/ad10/plao[10] 62 p1.0/t1/spm0/plai[0] 61 p1.1/spm1/plai[1] top view (not to scale) aduc7026/ aduc7027 pin 1 indicator figure 25 . 80 - lead lqfp pin configuration (aduc7026/aduc7027) table 13 . pin function descriptions (aduc7026/aduc7027) pin no. mnemonic description 1 adc4 single - ended or differential analog input 4. 2 adc5 single - ended or differential analog input 5. 3 adc6 single - ended or differential analog input 6. 4 adc 7 single - ended or differential analog input 7. 5 adc8 single - ended or differential analog input 8. 6 adc9 single - ended or differential analog input 9. 7 adc10 single - ended or differential analog input 10. 8 gnd ref ground voltage reference for the adc. for optimal performance, the analog power supply should be separated from iognd and dgnd. 9 adcneg bias point or negative analog input of the adc in pseudo differential mode. must be connected to the ground of the signal to convert. this bias point must b e between 0 v and 1 v. 10 dac0/adc12 dac0 voltage output/single - ended or differential analog input 12. dac outputs are not present on the aduc7027. 11 dac1/adc13 dac1 voltage output/single - ended or differential analog input 13. dac outputs are not presen t on the aduc7027. 12 dac2/adc14 dac2 voltage output/single - ended or differential analog input 14. dac outputs are not present on the aduc7027. 13 dac3/adc15 dac3 voltage output/single - ended or differential analog input 15. dac outputs are not present on the aduc7027. 14 tms jtag test port input, test mode select. debug and download access. 15 tdi jtag test port input, test data in. debug and download access. 16 p0.1/pwm2 h / ble general - purpose input and output port 0.1/pwm phase 2 high - side output/external memory byte low enable. 17 p2.3/ae general - purpose input and output port 2.3/external memory access enable.
data sheet aduc7019/20/21/22/24/25/26/27/28/29 rev. f | page 29 of 104 pin no. mnemonic description 18 p4.6/ad14/plao[14] general - purpose input and output port 4.6/external memory interface/programmable logic array out put element 14. 19 p4.7/ad15/plao[15] general - purpose input and output port 4.7/external memory interface/programmable logic array output element 15. 20 bm/p0.0/cmp out /plai[7]/ms0 multifunction i/o pin. boot mode. the aduc7026/aduc7027 enter uart downloa d mode if bm is low at reset and execute code if bm is pulled high at reset through a 1 k ? resistor/general - purpose input and output port 0.0/voltage comparator output/programmable logic array input element 7/external memory select 0. 21 p0.6/t1/mrst/plao[3] multifunction pin, driven low after reset. general - purpose output port 0.6/timer1 inp ut/ power - on reset output/programmable logic array output element 3. 22 tck jtag test port input, test clock. debug and download access. 23 tdo jtag test port output, test data out. debug and download access. 24 p0.2/pwm2 l / bhe ge neral - purpose input and output port 0.2/pwm phase 2 low - side output/external memory byte high enable. 25 iognd ground for gpio (see table 78). typically connected to dgnd. 26 iov dd 3.3 v supply for gpio (see table 78 ) and input of the on - chip voltage regulator. 27 lv dd 2.6 v output of the on - chip voltage regulator. this output must be connected to a 0.47 f capacitor to dgnd only. 28 dgnd ground for core logic. 29 p3.0/ad0/pwm0 h /plai[8] general - purpos e input and output port 3.0/external memory interface/pwm phase 0 high - side output/programmable logic array input element 8. 30 p3.1/ad1/pwm0 l /plai[9] general - purpose input and output port 3.1/external memory interface/pwm phase 0 low - side output/programm able logic array input element 9. 31 p3.2/ad2/pwm1 h /plai[10] general - purpose input and output port 3.2/external memory interface/pwm phase 1 high - side output/programmable logic array input element 10. 32 p3.3/ad3/pwm1 l /plai[11] general - purpose input and output port 3.3/external memory interface/pwm phase 1 low - side output/programmable logic array input element 11. 33 p2.4/pwm0 h /ms0 general - purpose input and output port 2.4/pwm phase 0 high - side output/external memory select 0. 34 p0.3/trst/a16/adc busy g eneral - purpose input and output port 0.3/jtag test port input, test reset/adc busy signal output. 35 p2.5/pwm0 l /ms1 general - purpose input and output port 2.5/pwm phase 0 low - side output/external memory select 1. 36 p2.6/pwm1 h /ms2 general - purpose input an d output port 2.6/pwm phase 1 high - side output/external memory select 2. 37 rst reset input, active low. 38 p3.4/ad4/pwm2 h /plai[12] general - purpose input and output port 3.4/external memory interface/pwm phase 2 high - side output/program mable logic array input 12. 39 p3.5/ad5/pwm2 l /plai[13] general - purpose input and output port 3.5/external memory interface/pwm phase 2 low - side output/programmable logic array input element 13. 40 irq0/p0.4/pwm trip /plao[1]/ms1 multifunction i/o pin. exte rnal interrupt request 0, active high/general - purpose input and output port 0.4/pwm trip external input/programmable logic array output element 1/ external memory select 1. 41 irq1/p0.5/adc busy /plao[2]/ms2 multifunction i/o pin. external interrupt request 1, active high/general - purpose input and output port 0.5/adc busy signal output/programmable logic array output element 2/external memory select 2. 42 p2.0/spm9/plao[5]/ conv start serial port multiplexed. general - purpose input and output port 2.0/uart/programmable logic array output element 5/ start conversion input signal for adc. 43 p0.7/eclk/xclk/spm8/plao[4] serial port multiplexed. general - purpose input and output port 0.7/output for external clock signal/input to the internal clock generator circuits/uart/programmable logic array output element 4. 44 xclko output from the crystal oscillator inverter. 45 xclki input to the crystal oscillator inverter and input to the internal clock generator circuits.
aduc7019/20/21/22/24/2 5/26/27/28/29 data sheet rev. f | page 30 of 104 pin no. mnemonic description 46 p3.6/ad6/pwm trip /plai[14] general-purpose input and output port 3.6/exte rnal memory interface/pwm safety cutoff/ programmable logic array input element 14. 47 p3.7/ad7/pwm sync /plai[15] general-purpose input and output port 3.7/external memory interface/pwm synchronization/ programmable logic array input element 15. 48 p2.7/pwm1 l /ms3 general-purpose input and output port 2.7/pw m phase 1 low-side output/external memory select 3. 49 p2.1/ws /pwm0 h /plao[6] general-purpose input and output port 2.1/ external memory write strobe/pwm phase 0 high- side output/programmable logic array output element 6. 50 p2.2/rs /pwm0 l /plao[7] general-purpose input and output port 2. 2/external memory read strobe/pwm phase 0 low- side output/programmable logic array output element 7. 51 p1.7/spm7/plao[0] serial port multiplexed. general-purpose input and output port 1.7/uart, spi/programmable logic array output element 0. 52 p1.6/spm6/plai[6] serial port multiplexed. general-purpose input and output port 1.6/uart, spi/programmable logic array input element 6. 53 iognd ground for gpio (see table 78). typically connected to dgnd. 54 iov dd 3.3 v supply for gpio (see table 78) and input of the on-chip voltage regulator. 55 p4.0/ad8/plao[8] general-purpose input and output port 4.0/external memory interface/programmable logic array output element 8. 56 p4.1/ad9/plao[9] general-purpose input and output port 4.1/external memory interface/programmable logic array output element 9. 57 p1.5/spm5/plai[5]/irq3 serial port multiplexed. general-purpose input and output port 1.5/uart, spi/programmable logic array input element 5/external interrupt request 3, active high. 58 p1.4/spm4/plai[4]/irq2 serial port multiplexed. general-purpose input and output port 1.4/uart, spi/programmable logic array input element 4/external interrupt request 2, active high. 59 p1.3/spm3/plai[3] serial port multiplexed. general-purpose inpu t and output port 1.3/uart, i2c1/programmable logic array input element 3. 60 p1.2/spm2/plai[2] serial port multiplexed. general-purpose inpu t and output port 1.2/uart, i2c1/programmable logic array input element 2. 61 p1.1/spm1/plai[1] serial port multiplexed. general-purpose inpu t and output port 1.1/uart, i2c0/programmable logic array input element 1. 62 p1.0/t1/spm0/plai[0] serial port multiplexed. general-purpose input and output port 1.0/timer1 input/uart, i2c0/ programmable logic array input element 0. 63 p4.2/ad10/plao[10] general-purpose input and output port 4.2/external memory interface/programmable logic array output element 10. 64 p4.3/ad11/plao[11] general-purpose input and output port 4.3/external memory interface/programmable logic array output element 11. 65 p4.4/ad12/plao[12] general-purpose input and output port 4.4/external memory interface/programmable logic array output element 12. 66 p4.5/ad13/plao[13] general-purpose input and output port 4.5/external memory interface/programmable logic array output element 13. 67 refgnd ground for the reference. typically connected to agnd. 68 v ref 2.5 v internal voltage reference. must be connected to a 0.47 f capacitor when using the internal reference. 69 dac ref external voltage reference for the dacs. range: dacgnd to dacv dd . 70 dacgnd ground for the dac. typically connected to agnd. 71, 72 agnd analog ground. ground reference point for the analog circuitry. 73, 74 av dd 3.3 v analog power. 75 dacv dd 3.3 v power supply for the dacs. must be connected to av dd . 76 adc11 single-ended or differential analog input 11. 77 adc0 single-ended or differential analog input 0. 78 adc1 single-ended or differential analog input 1. 79 adc2/cmp0 single-ended or differential an alog input 2/comparator positive input. 80 adc3/cmp1 single-ended or differential an alog input 3/comparator negative input.
data sheet aduc7019/20/21/22/24/25/26/27/28/29 rev. f | page 31 of 104 aduc7028 a 8 7 6 5 4 3 2 1 b c d e f g h bottom view (not to scale) 04955-086 figure 26 . 64 - ball csp_ bga pin configuration (aduc7028) table 14 . pin function descriptions (aduc7028) ball no. mnemonic description a1 adc3/cmp1 single - ended or differential analog input 3/comparator negative input. a2 dacv dd 3.3 v power supply for the dacs. must be connected to av dd . a3 av dd 3.3 v analog power. a4 agnd analog ground. ground reference point for the analog circuitry. a5 dacgnd ground for th e dac. typically connected to agnd. a6 p4.2/plao[10] general - purpose input and output port 4.2/programmable logic array output element 10. a7 p1.1/spm1/plai[1] serial port multiplexed. general - purpose input and output port 1.1/uart, i2c0/programmable log ic array input element 1. a8 p1.2/spm2/plai[2] serial port multiplexed. general - purpose input and output port 1.2/uart, i2c1/programmable logic array input element 2. b1 adc4 single - ended or differential analog input 4. b2 adc2/cmp0 single - ended or diff erential analog input 2/comparator positive input. b3 adc1 single - ended or differential analog input 1. b4 dac ref external voltage reference for the dacs. range: dacgnd to dacv dd . b5 v ref 2.5 v internal voltage reference. must be connected to a 0.47 f capacitor when using the internal reference. b6 p1.0/t1/spm0/plai[0] serial port multiplexed. general - purpose input and output port 1.0/timer1 input/uart, i2c0/ programmable logic array input element 0. b7 p1.4/spm4/plai[4]/irq2 serial port multiplexed. general - purpose input and output port 1.4/uart, spi/programmable logic array input element 4/ external interrupt request 2, active high. b8 p1.3/spm3/plai[3] serial port multiplexed. general - purpose input and output port 1.3/uart, i2c1/programmable logic a rray input element 3. c1 adc6 single - ended or differential analog input 6. c2 adc5 single - ended or differential analog input 5. c3 adc0 single - ended or differential analog input 0. c4 p4.5/plao[13] general - purpose input and output port 4.5/programmable logic array output element 13. c5 p4.3/plao[11] general - purpose input and output port 4.3/programmable logic array output element 11. c6 p4.0/plao[8] general - pur pose input and output port 4.0/ programmable logic array output element 8. c7 p4.1/plao[9] g eneral - purpose input and output port 4.1/programmable logic array output element 9. c8 iognd ground for gpio (see table 78). typically connected to dgnd. d1 adcneg bias point or negative analog input of the adc in pseudo differe ntial mode. must be connected to the ground of the signal to convert. this bias point must be between 0 v and 1 v. d2 gnd ref ground voltage reference for the adc. for optimal performance, the analog power supply should be separated from iognd and dgnd. d 3 adc7 single - ended or differential analog input 7. d4 p4.4/plao[12] general - purpose input and output port 4.4/programmable logic array output element 12. d5 p3.6/pwm trip /plai[14] general - purpose input and output port 3.6/pwm safety cutoff/programmable l ogic array input element 14. d6 p1.7/spm7/plao[0] serial port multiplexed. general - purpose input and output port 1.7/uart, spi/programmable logic array output element 0.
aduc7019/20/21/22/24/25/26/27/28/29 data sheet rev. f | page 32 of 104 ball no. mnemonic description d7 p1.6/spm6/plai[6] serial port multiplexed. general - purpose input and output port 1.6/uart, spi/programmable logic array input element 6. d8 iov dd 3.3 v supply for gpio (see table 78) and input of the on - chip voltage regulator. e1 dac3 /adc15 dac3 voltage output / adc input 15. e2 dac2 /adc14 dac2 voltage output / adc input 14. e3 dac1 /adc13 dac1 voltage output / adc input 13. e4 p3.0/pwm0 h /plai[8] general - purpose input and output port 3.0/pwm phase 0 high - side output/programmable logic array input element 8. e5 p3.2/pwm1 h /plai[10] general - purpose input and output port 3.2/pwm phase 1 high - side output/programmable logic array input element 10. e6 p1.5/spm5/plai[5]/irq3 serial port multiplexed. general - purpose input and output port 1.5/uart, spi/programmable logic array input element 5/external interrupt request 3, active high. e7 p3.7/pwm sync /plai[15] general - purpose input and output port 3.7/pwm synchronization/programmable logic array input element 15. e8 xclki input to the crystal oscillator inverter and input to the internal clock generator circuits. f1 p4.6 /plao[14] general - purpose input and output port 4.6/programmable logic array output element 14. f2 tdi jtag test port input, test data in. debug and download access. f3 dac0 /adc1 2 dac0 voltage output / adc input 1 2 . f4 p3.1/pwm0 l /plai[9] general - purpose i nput and output port 3.1/pwm phase 0 low - side output/programmable logic array input element 9. f5 p3.3/pwm1 l /plai[11] general - pur pose input and output port 3.3/ pwm phase 1 low - side output/programmable logic array input element 11. f6 rst reset input, active low. f7 p0.7/eclk/xclk/spm8/plao[4] serial port multiplexed. general - purpose input and output port 0.7/output for external clock signal/input to the internal clock generator circuits/uart/programmable logic array output element 4. f 8 xclko output from the crystal oscillator inverter. g1 bm/p0.0/cmp out /plai[7] multifunction i/o pin. boot m ode. the aduc7028 enters uart download mode if bm is low at reset and executes code if bm is pulled high at reset through a 1 k ? resistor/general - p urpose input and output port 0.0/voltage comparator output/programmable logic array input element 7. g2 p4.7/plao[15] general - purpose input and output port 4.7/programmable logic array output element 15. g3 tms jtag test port input, test mode select. deb ug and download access. g4 tdo jtag test port output, test data out. debug and download access. g5 p0.3/trst/adc busy general - purpose input and output port 0.3/jtag test port input, test reset/adc busy signal output. g6 p3.4/pwm2 h /plai[12] general - purpos e input and output port 3.4/pwm phase 2 high - side output/programmable logic array input 12. g7 p3.5/pwm2 l /plai[13] general - purpose input and output port 3.5/pwm phase 2 low - side output/programmable logic array input element 13. g8 p2.0/spm9/plao[5]/ conv start serial port multiplexed. general - purpose input and output port 2.0/uart/programmable logic array output element 5/ start conversion input signal for adc. h1 p0.6/t1/mrst/plao[3] multifunction pin, driven low after reset. general - purp ose output port 0.6/timer1 input/ power - on reset output/programmable logic array output element 3. h2 tck jtag test port input, test clock. debug and download access. h3 iognd ground for gpio (see table 78) . typically connected to dgnd. h4 iov dd 3.3 v supply for gpio (see table 78) and input of the on - chip voltage regulator. h5 lv dd 2.6 v output of the on - chip voltage regulator. this output must be connected to a 0.47 f capacitor to dgnd only. h6 dgn d ground for core logic. h7 irq0/p0.4/pwm trip /plao[1] multifunction i/o pin. external interrupt request 0, active high/general - purpose input and output port 0.4/pwm trip external input/programmable logic array output element 1. h8 irq1/p0.5/adc busy /plao[ 2] multifunction i/o pin. external interrupt request 1, active high/general - purpose input and output port 0.5/adc busy signal output/programmable logic array output element 2.
data sheet aduc7019/20/21/22/24/25/26/27/28/29 rev. f | page 33 of 104 aduc7029 bot t om view (not to scale) 7 4 5 6 3 2 1 a b c d e f g 04955-088 figure 27 . 49 - ball csp_ bga pin configuratio n (aduc7029) table 15 . pin function descriptions (aduc7029) ball no. mnemonic description a1 adc3/cmp1 single - ended or differential analog input 3/comparator negative input. a2 adc1 single - ended or differential analog input 1. a3 adc0 single - ended or differential analog input 0. a4 av dd 3.3 v analog power. a5 v ref 2.5 v internal voltage reference. must be connected to a 0.47 f capacitor when using the internal reference. a6 p1.0/t1/spm0/plai[0] serial port multiplexed. general - purpose input and output port 1.0/timer1 input/uart, i2c0/ programmable logic array input element 0. a7 p1.1/spm1/plai[1] serial port multiplexed. general - purpose input and output port 1.1/uart, i2c0/programmable logic array input element 1. b1 adc6 sin gle - ended or differential analog input 6. b2 adc5 single - ended or differential analog input 5. b3 adc4 single - ended or differential analog input 4. b4 agnd analog ground. ground reference point for the analog circuitry. b5 dac ref external voltage refer ence for the dacs. range: dacgnd to dacv dd . b6 p1.4/spm4/plai[4]/irq2 serial port multiplexed. general - purpose input and output port 1.4/uart, spi/programmable logic array input element 4/ external interrupt request 2, active high. b7 p1.3/spm3/plai[3] se rial port multiplexed. general - purpose input and output port 1.3/uart, i2c1/programmable logic array input element 3. c1 gnd ref ground voltage reference for the adc. for optimal performance, the analog power supply should be separated from iognd and dgnd. c2 agnd analog ground. ground reference point for the analog circuitry. c3 adc2/cmp0 single - ended or differential analog input 2/comparator positive input. c4 iognd ground for gpio (see table 78). typically connected to dgnd. c5 p1.2/spm2/plai[2] serial port multiplexed. general - purpose input and output port 1.2/uart, i2c1/programmable logic array input element 2. c6 p1.6/spm6/plai[6] serial port multiplexed. general - purpose input and output port 1.6/uart, spi/programmable lo gic array input element 6. c7 p1.5/spm5/plai[5]/irq3 serial port multiplexed. general - purpose input and output port 1.5/uart, spi/programmable logic array input element 5/external interrupt request 3, active high. d1 dac0 /adc12 dac0 voltage output/ adc in put 12 . d2 dac3 /adc15 dac3 voltage output/ adc input 15. d3 dac1 /adc13 dac1 voltage output/ adc input 13. d4 p3.3/pwm1 l /plai[11] general - pur pose input and output port 3.3/ pwm phase 1 low - side output/programmable logic array input element 11. d5 p3.4/pwm2 h /plai[12] general - purpose input and output port 3.4/pwm phase 2 high - side output/programmable logic array input 12. d6 p3.6/pwm trip /plai[14] general - purpose input and output port 3.6/pwm safety cuto ff/programmable logic array input element 14. d7 p1.7/s pm7/plao[0] serial port multiplexed. general - purpose input and output port 1.7/uart, spi/programmable logic array output element 0.
aduc7019/20/21/22/24/25/26/27/28/29 data sheet rev. f | page 34 of 104 ball no. mnemonic description e1 tms jtag test port input, test mode select. debug and download access. e2 bm/p0.0/cmp out /plai[7] multifunction i/o pin. boot m ode. the aduc702 9 enters uart download mode if bm is low at reset and executes code if bm is pulled high at reset through a 1 k ? resistor/general - purpose input and output port 0.0/voltage comparator output/programmable logic array input element 7. e3 dac2 /adc14 dac2 voltage output / adc input 14. e4 iov dd 3.3 v supply for gpio (see table 78) and input of the on - chip voltage regulator. e5 p3.2/pwm1 h /plai[10] general - purpose input and output port 3.2/pwm phase 1 high - side out put/programmable logic array input element 10. e6 p3.5/pwm2 l /plai[13] general - purpose input and output port 3.5/pwm phase 2 low - side output/programmable logic array input element 13. e7 p0.7/eclk/xclk/spm8/plao[4] serial port multiplexed. general - purpose input and output port 0.7/output for external clock signal/input to the internal clock generator circuits/uart/programmable logic array output element 4. f1 tdi jtag test port input, test data in. debug and download access. f2 p0.6/t1/mrst/plao[3] multi function pin, driven low after reset. general - purpose output port 0.6/timer1 input/ power - on reset output/programmable logic array output element 3. f3 iognd ground for gpio (see table 78) . typically connected to dgnd. f4 p3.1/p wm0 l /plai[9] general - purpose input and output port 3.1/pwm phase 0 low - side output/programmable logic array input element 9. f5 p3.0/pwm0 h /plai[8] general - purpose input and output port 3.0/pwm phase 0 high - side output/programmable logic array input elemen t 8. f6 rst reset input, active low. f7 p2.0/spm9/plao[5]/ conv start serial port multiplexed. general - purpose input and output port 2.0/uart/programmable logic array output element 5/ start conversion input signal for ad c. g1 tck jtag test port input, test clock. debug and download access. g2 tdo jtag test port output, test data out. debug and download access. g3 lv dd 2.6 v output of the on - chip voltage regulator. this output must be connected to a 0.47 f capacitor to dgnd only. g4 dgnd ground for core logic. g5 p0.3/trst/adc busy general - purpose input and output port 0.3/jtag test port input, test reset/adc busy signal output. g6 irq0/p0.4/pwm trip /plao[1] multifunction i/o pin. external interrupt request 0, active h igh/general - purpose input and output port 0.4/pwm trip external input/programmable logic array output element 1. g7 irq1/p0.5/adc busy /plao[2] multifunction i/o pin. external interrupt request 1, active high/general - purpose input and output port 0.5/adc bus y signal output/programmable logic array output element 2.
data sheet aduc7019/20/21/22/24/25/26/27/28/29 rev. f | page 35 of 104 typical performance characteristics adc codes (lsb) 1.0 ?1.0 ?0.8 ?0.6 ?0.4 ?0.2 0 0.2 0.4 0.6 0.8 0 2000 1000 3000 4000 04955-075 f s = 774ksps figure 28 . typical inl error, f s = 774 ksps adc codes (lsb) 1.0 ?1.0 ?0.8 ?0.6 ?0.4 ?0.2 0 0.2 0.4 0.6 0.8 0 2000 1000 3000 4000 04955-077 f s = 1msps figure 29 . typical inl error, f s = 1 msps external reference (v) (lsb) (lsb) 1.0 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 0 ?0.1 ?0.2 ?0.3 ?0.5 ?0.6 ?0.7 ?0.8 ?0.9 ?1.0 1.0 1.5 2.0 2.5 3.0 04955-072 wcn wcp figure 30 . typical worst - case (positive ( wcp ) and negative ( wcn )) inl error vs. v ref , f s = 774 ksps adc codes (lsb) 1.0 ?1.0 ?0.8 ?0.6 ?0.4 ?0.2 0 0.2 0.4 0.6 0.8 0 2000 1000 3000 4000 04955-074 f s = 774ksps figure 31 . typical dnl error, f s = 774 ksps adc codes (lsb) 1.0 ?1.0 ?0.8 ?0.6 ?0.4 ?0.2 0 0.2 0.4 0.6 0.8 0 2000 1000 3000 4000 04955-076 f s = 1msps figure 32 . typical dnl error, f s = 1 msps external reference (v) (lsb) (lsb) 0 ?1.0 ?0.9 ?0.8 ?0.7 ?0.6 ?0.5 ?0.4 ?0.3 ?0.2 ?0.1 1.0 0.9 0.8 0.7 0.6 0.5 0.4 0.3 0.2 0.1 0 1.0 1.5 2.0 2.5 3.0 04955-071 wcn wcp figure 33 . typical worst - case (positive (wcp )and negative (wcn)) dnl error vs. v ref , f s = 774 ksps
aduc7019/20/21/22/24/25/26/27/28/29 data sheet rev. f | page 36 of 104 bin frequency 9000 0 1000 2000 3000 4000 5000 6000 7000 8000 1161 1162 1163 04955-073 figure 34 . code histogram plot, fs = 774 ksps, v in = 0.7 v frequency (khz) (db) 0 ?160 ?140 ?120 ?100 ?80 ?60 ?40 ?20 0 100 200 04955-078 f s = 774ksps, snr = 69.3db, thd = ?80.8db, phsn = ?83.4db figure 35 . dynamic performance, f s = 774 ksps frequency (khz) (db) 20 0 ?160 ?140 ?120 ?100 ?80 ?60 ?40 ?20 0 150 100 50 200 04955-079 f s = 1msps, snr = 70.4db, thd = ?77.2db, phsn = ?78.9db figure 36 . dynamic performance, f s = 1 msps external reference (v) snr (db) thd (db) 75 40 45 50 55 60 65 70 ?76 ?88 ?86 ?84 ?82 ?80 ?78 1.0 1.5 2.0 2.5 3.0 04955-070 snr thd figure 37 . typical dynamic performance vs. v ref 04955-060 temperature ( c) code ?50 0 50 100 1000 1500 1450 1400 1350 1300 1250 1200 1150 1100 1050 150 figure 38 . on - chip temperatur e sensor voltage output vs. temperature temperature (c) (ma) 39.8 39.7 38.9 39.0 39.1 39.2 39.3 39.4 39.5 39.6 ?40 25 85 0 125 04955-080 figure 39 . current consumption vs. temperature @ cd = 0
data sheet aduc7019/20/21/22/24/25/26/27/28/29 rev. f | page 37 of 104 temperature (c) (ma) 12.05 11.95 12.00 11.55 11.60 11.65 11.70 11.75 11.80 11.85 11.90 ?40 25 85 0 125 04955-081 figure 40 . current consumption vs. temperature @ cd = 3 temperature (c) (ma) 7.85 7.75 7.80 7.40 7.45 7.50 7.55 7.60 7.65 7.70 ?40 25 85 0 125 04955-082 figure 41 . cur rent consumption vs. temperature @ cd = 7 temperature (c) (ma) 1.4 1.2 1.0 0.8 0.6 0.4 0.2 0 ?40 25 85 0 125 04955-083 figure 42 . current consumption vs. temperature in sleep mode sampling frequency (ksps) (ma) 37.4 37.2 37.0 36.8 36.6 36.4 36.2 62.25 250.00 500.00 125.00 1000.00 04955-084 figure 43 . current consumption vs. sampling frequency
aduc7019/20/21/22/24/25/26/27/28/29 data sheet rev. f | page 38 of 104 terminology adc specifications in tegral nonlinearity (inl) the maximum deviation of any code from a straight line passing through the endpoints of the adc transfer function. the endpoints of the transfer function are zero scale, a point ? lsb below the first code transition, and full scal e, a point ? lsb above the last code transition. differential nonlinearity (dnl) the difference between the measured and the ideal 1 lsb change between any two adjacent codes in the adc. offset error the deviation of the first code transition (0000 . . . 0 00) to (0000 . . . 001) from the ideal, that is, +? lsb. gain error the deviation of the last code transition from the ideal ain voltage (full scale ? 1.5 lsb) after the offset error has been adjusted out. signal to (noise + distortion) ratio (sinad) the measured ratio of signal to (noise + distortion) at the output of the adc. the signal is the rms amplitude of the fundamental. noise is the rms sum of all nonfundamental signals up to half the sampling frequency (f s /2), excluding dc. the ratio is dependent upon the number of quantization levels in the digitization process ; the more levels, the smaller the quantization noise. the theoretical signal to (noise + distortion) ratio for an ideal n - bit converter with a sine wave input is given by signal to ( noise + distortion ) = (6.02 n + 1.76) db thus, for a 12 - bit converter, t his is 74 db. total harmonic distortion (thd) the ratio of the rms sum of the harmonics to the fundamental. dac specifications relative accuracy otherwise known as endpoint linearity, relative accuracy is a measure of the maximum deviation from a straight line passing through the endpoints of the dac transfer function. it is measured after adjusting for zero error and full - scale error. voltage output settling time the amount of time it takes the output to settle to within a 1 lsb level for a full - scale inpu t change.
data sheet aduc7019/20/21/22/24/25/26/27/28/29 rev. f | page 39 of 104 overview of the arm7 tdmi core the arm7? core is a 32 - bit reduced instruction set computer (risc). it uses a single 32 - bit bus for instruction and data. the length of the data can be eight bits, 16 bits, or 32 bits. the length of the instruction word is 32 bits. the arm7tdmi is an arm7 core with four additional feat ures. ? t support for the thumb (16 - bit) instruction set . ? d support for debug . ? m support for long multiplications . ? i includes the embeddedice module to support embedded system debugging . thumb mode (t) an arm instruction is 32 bits long. the arm7tdmi processor supports a second instruction set that is compressed into 16 bits , called the thumb instruction set. faster execution from 16 - bit memory and greater code density can usually be achi eved by using the thumb instruction set instead of the arm instruction set, which makes the arm7tdmi core particularly suitable for embedded applications. however, the thumb mode has two limitations. ? thumb code typically requires more instructions for the same job. as a result, arm code is usually best for maximizing the performance of time - critical code. ? the thumb instruction set does not include some of the instructions needed for exception handling, which automatically switches the core to arm code for e xception handling. see the arm7tdmi user guide for details on the core architecture, the programming model, and both the arm and arm thumb instruction sets. long multiply (m) the arm7tdmi instruction set includes four extra instruc - tions that perform 32 - b it by 32 - bit multiplication with a 64 - bit result, and 32 - bit by 32 - bit multiplication - accumulation (mac) with a 64 - bit result. these results are achieved in fewer cycles than required on a standard arm7 core. e mbedded ice (i) embeddedice provides integrated on - chip support for the core. the embeddedice module contains the breakpoint and watch - point registers that allow code to be halted for debugging purposes. these registers are controlled through the jtag test port. when a breakpoint or watchpoint is encou ntered, the processor halts and enters debug state. once in a debug state, the processor registers can be inspected as well as the flash/ee, sram, and memory mapped registers. exceptions arm supports five types of exceptions and a privileged processing mo de for each type. t he five types of exceptions are ? normal interrupt or irq , which is provided to service general - purpose interrupt handling of internal and external events. ? fast interrupt or fiq , which is provided to service data transfers or communication channels with low latency. fiq has priority over irq. ? memory abort. ? attempted execution of an undefined instruction. ? software interrupt instruction (swi) , which can be used to make a call to an operating system. typically, the programmer defines interru pt as irq, but for higher priority interrupt, that is, faster response time, the programmer can define interrupt as fiq. arm registers arm7tdmi has a total of 37 registers: 31 general - purpose registers and six status registers. each operating mode has dedi cated banked registers. when writing user - level programs, 15 general - purpose 32 - bit registers (r0 to r14), the program counter (r15) , and the current program status register (cpsr) are usable. the remaining registers are used for system - level programming a nd exception handling only . when an exception occurs, some of the standard registers are replaced with registers specific to the exception mode. all excep - tion modes have replacement banked registers for the stack pointer (r13) and the link register (r14) , as represented in figure 44 . the fast interrupt mode has more registers (r8 to r12) for fast interrupt processing. this means that interrupt processing can begin without the need to save or restore these registers and , thus , save critical time in the interrupt handling process. 04955-007 usable in user mode system modes only spsr_und spsr_irq spsr_abt spsr_svc r8_fiq r9_fiq r10_fiq r11_fiq r12_fiq r13_fiq r14_fiq r13_und r14_und r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 (pc) r13_irq r14_irq r13_abt r14_abt r13_svc r14_svc spsr_fiq cpsr user mode fiq mode svc mode abort mode irq mode undefined mode figure 44 . register organization
aduc7019/20/21/22/24/25/26/27/28/29 data sheet rev. f | page 40 of 104 more information relative to the programmers model and the arm7tdmi core architecture can be found in the following materials from arm: ? ddi00 29g, arm7tdmi technical reference manual ? ddi - 0100, arm architecture reference manual interrupt latency the worst - case latency for a fast interrupt request (fiq) consists of the following: ? the longest time the request can take to pass through the synchroni zer ? the time for the longest instruction to complete (the longest instruction is an ldm) that loads all the registers including the pc ? the time for the data abort entry ? the time for fiq entry at the end of this time, the arm7tdmi executes the instruc - tion at 0x1c (fiq interrupt vector address). the maximum total time is 50 processor cycles, which is just under 1.2 s in a system using a continuous 41.78 mhz processor clock. the maximum interrupt request (irq) latency calculation is similar but must allow f or the fact that fiq has higher priority and may delay entry into the irq handling routine for an arbitrary length of time. this time can be reduced to 42 cycles if the ldm command is not used. some compilers have an option to compile without using this co mmand. another option is to run the part in thumb mode where the time is reduced to 22 cycles. the minimum latency for fiq or irq interrupts is a total of five cycles, which consist of the shortest time the request can take through the synchronizer plus th e time to enter the exception mode. note that the arm7tdmi always runs in arm (32 - bit) mode when in privileged modes, for example, when executing interrupt service routines.
data sheet aduc7019/20/21/22/24/25/26/27/28/29 rev. f | page 41 of 104 memory organization the aduc7019/20/21/22/24/25/26/27/28 /29 incorporate two sepa rate blocks of memory: 8 kb of sram and 64 kb of on - chip flash/ee memory . the 62 kb of on - chip flash/ee memory is available to the user, and the remaining 2 kb are reserved for the factory - configured boot page. these two blocks are mapped as shown in figure 45. 04955-008 mmrs 0xffffffff 0xffff0000 reserved external memory region 3 0x40000ffff 0x40000000 reserved external memory region 2 0x30000ffff 0x30000000 reserved external memory region 1 0x20000ffff 0x20000000 reserved external memory region 0 0x10000ffff 0x10000000 reserved flash/ee 0x0008ffff 0x00080000 reserved sram 0x00011fff 0x00010000 remappable memory space (flash/ee or sram) 0x0000ffff 0x00000000 figure 45 . physical memory map note that by default, after a reset, the flash/ee memory is mirrored at address 0x00000000. it is possible to remap the sram at address 0x00000000 by clearing bit 0 of the remap mmr. this remap function is described in more detail in the flash/ee memory section. memory access the arm7 core sees memory as a linear array of a 2 32 byte location where the different blocks of memory are map ped as outlined in figure 45. the aduc7019/20/21/22/24/25/26/27/28 /29 memory organiza - tions are configured in little endian format, which means that the least significant byte is located in the lowest byte address, and the mos t significant byte is in the highest byte address. 04955-009 bit 31 byte 2 a 6 2 . . . byte 3 b 7 3 . . . byte 1 9 5 1 . . . byte 0 8 4 0 . . . bit 0 32 bits 0xffffffff 0x00000004 0x00000000 figure 46 . little endian format flash/ee memory the total 64 kb of flash/ee memory is organized as 32 k 16 bits; 31 k 16 bits is user space and 1 k 16 bits is reserved for the on - chip kernel. the page size of this flash/ee memory is 512 bytes. sixty - two kilobytes of flash/ee memory are available to the user as code and nonvolatile data memory. there is no distinction between data and program because arm code shares the same space. the real width of the flash/ee memory is 16 bits, which means that in arm mode (32 - bit instruction), two accesses to the flash/ee are necessary for each instruction fetch. it is therefore recommended to use thumb mode when executing from flash/ee me mory for optimum access speed. the maximum access speed for the flash/ee memory is 41.78 mhz in thumb mode and 20.89 mhz in full arm mode. more details about flash/ee access time are outlined in the execution time from sram and flash/ee section. sram eight kilobytes of sram are available to the user, organized as 2 k 32 bits, that is, two words. arm code can run directly from sram at 41.78 mhz, given that the sram array is configured as a 32 - bit wide memory array. more detai ls about sram access time are outlined in the execution time from sram and flash/ee section. memory mapped regist ers the memory mapped register (mmr) space is mapped into the uppe r two pages of the memory array and accessed by indirect addressing through the arm7 banked registers. the mmr space provides an interface between the cpu and all on - chip peripherals. all registers, except the core registers, reside in the mmr area. all shaded locations shown in figure 47 are unoccupied or reserved locations and should not be accessed by user software. table 16 shows the full mmr memory map. the access time for reading from or writing to an mmr depends on the advanced microcontr oller bus architecture (amba) bus used to access the peripheral. the processor has two amba buses: the advanced high performance bu s (ahb) used for system modules and the advanced peripheral bus (apb) used for lower performance peripheral. access to the ah b is one cycle, and access to the apb is two cycles. all peripherals on the aduc7019/20/21/22/24/25/26/27/28 /29 are on the apb except the flash/ee memory, the gpios (see table 78) , and the pwm.
aduc7019/20/21/22/24/2 5/26/27/28/29 data sheet rev. f | page 42 of 104 pwm flash control interface gpio pla spi i2c1 i2c0 uart dac adc band gap reference power supply monitor pll and oscillator control watchdog timer wake-up timer general-purpose timer timer 0 remap and system control interrupt controller 0xffffffff 0xfffffc3c 0xfffffc00 0xfffff820 0xfffff800 0xfffff46c 0xfffff400 0xffff0b54 0xffff0b00 0xffff0a14 0xffff0a00 0xffff0948 0xffff0900 0xffff0848 0xffff0800 0xffff0730 0xffff0700 0xffff0620 0xffff0600 0xffff0538 0xffff0500 0xffff0490 0xffff048c 0xffff0448 0xffff0440 0xffff0420 0xffff0404 0xffff0370 0xffff0360 0xffff0350 0xffff0340 0xffff0334 0xffff0320 0xffff0310 0xffff0300 0xffff0238 0xffff0220 0xffff0110 0xffff0000 04955-010 figure 47. memory mapped registers table 16. complete mmr list address name byte access type default value page irq address base = 0xffff0000 0x0000 irqsta 4 r 0x00000000 83 0x0004 irqsig 1 4 r 0x00xxx000 83 0x0008 irqen 4 r/w 0x00000000 83 0x000c irqclr 4 w 0x00000000 83 0x0010 swicfg 4 w 0x00000000 84 0x0100 fiqsta 4 r 0x00000000 84 0x0104 fiqsig 1 4 r 0x00xxx000 84 0x0108 fiqen 4 r/w 0x00000000 84 0x010c fiqclr 4 w 0x00000000 84 1 depends on the level on the external interrupt pins (p0.4, p0.5, p1.4, and p1.5). system control address base = 0xffff0200 0x0220 remap 1 r/w 0xxx 1 55 0x0230 rststa 1 r/w 0x01 55 0x0234 rstclr 1 w 0x00 55 1 depends on the model. timer address base = 0xffff0300 0x0300 t0ld 2 r/w 0x0000 85 0x0304 t0val 2 r 0xffff 85 0x0308 t0con 2 r/w 0x0000 85 0x030c t0clri 1 w 0xff 85 0x0320 t1ld 4 r/w 0x00000000 86 0x0324 t1val 4 r 0xffffffff 86 0x0328 t1con 2 r/w 0x0000 86 0x032c t1clri 1 w 0xff 87 0x0330 t1cap 4 r/w 0x00000000 87 0x0340 t2ld 4 r/w 0x00000000 87 0x0344 t2val 4 r 0xffffffff 87 0x0348 t2con 2 r/w 0x0000 87 0x034c t2clri 1 w 0xff 88 0x0360 t3ld 2 r/w 0x0000 88 0x0364 t3val 2 r 0xffff 88 0x0368 t3con 2 r/w 0x0000 88 0x036c t3clri 1 w 0x00 89 pll base address = 0xffff0400 0x0404 powkey1 2 w 0x0000 60 0x0408 powcon 2 r/w 0x0003 60 0x040c powkey2 2 w 0x0000 60 0x0410 pllkey1 2 w 0x0000 60 0x0414 pllcon 1 r/w 0x21 60 0x0418 pllkey2 2 w 0x0000 60 psm address base = 0xffff0440 0x0440 psmcon 2 r/w 0x0008 57 0x0444 cmpcon 2 r/w 0x0000 58
data sheet aduc7019/20/21/22/24/25/26/27/28/29 rev. f | page 43 of 104 address name byte access type default value page reference address base = 0xffff0480 0x048c refcon 1 r/w 0x00 50 adc address base = 0xffff0500 0x0500 adccon 2 r/w 0x06 00 46 0x0504 adccp 1 r/w 0x00 47 0x0508 adccn 1 r/w 0x01 47 0x050c adcsta 1 r 0x00 48 0x0510 adcdat 4 r 0x00000000 48 0x0514 adcrst 1 r/w 0x00 48 0x0530 adcgn 2 r/w 0x0200 48 0x0534 adcof 2 r/w 0x0200 48 dac address base = 0xffff0600 0x0600 dac0con 1 r/w 0x00 56 0x0604 dac0dat 4 r/w 0x00000000 56 0x0608 dac1con 1 r/w 0x00 56 0x060c dac1dat 4 r/w 0x00000000 56 0x0610 dac2con 1 r/w 0x00 56 0x0614 dac2dat 4 r/w 0x00000000 56 0x0618 dac3con 1 r/w 0x00 56 0x061c dac3dat 4 r/w 0x00000000 56 uart base address = 0xffff0700 0x0700 co mtx 1 r/w 0x00 71 comrx 1 r 0x00 71 comdiv0 1 r/w 0x00 71 0x0704 comien0 1 r/w 0x00 71 comdiv1 1 r/w 0x00 72 0x0708 comiid0 1 r 0x01 72 0x070c comcon0 1 r/w 0x00 72 0x0710 comcon1 1 r/w 0x00 72 0x0714 comsta0 1 r 0x60 72 0x0718 comst a1 1 r 0x00 73 0x071c comscr 1 r/w 0x00 73 0x0720 comien1 1 r/w 0x04 73 0x0724 comiid1 1 r 0x01 73 0x0728 comadr 1 r/w 0xaa 74 0x072c comdiv2 2 r/w 0x0000 73 address name byte access type default value page i2c0 base address = 0xffff0800 0x0800 i2c0msta 1 r/w 0x00 76 0x0804 i2c0ssta 1 r 0x01 76 0x0808 i2c0srx 1 r 0x00 77 0x080c i2c0stx 1 w 0x00 77 0x0810 i2c0mrx 1 r 0x00 77 0x0814 i2c0mtx 1 w 0x00 77 0x0818 i2c0cnt 1 r/w 0x00 77 0x081c i2c0adr 1 r/w 0x00 77 0x0824 i2c0byte 1 r/w 0x00 77 0x0828 i2c0alt 1 r/w 0x00 78 0x082c i2c0cfg 1 r/w 0x00 78 0x0830 i2c0div 2 r/w 0x1f1f 79 0x0838 i2c0id0 1 r/w 0x00 79 0x083c i2c0id1 1 r/w 0x00 79 0x0840 i2c0id2 1 r/w 0x00 79 0x0844 i2c0id3 1 r/w 0x00 79 0x0848 i2c0ccnt 1 r/w 0x01 79 0x084c i2c0fsta 2 r/w 0x0000 79 i2c1 base address = 0xffff0900 0x0900 i2c1msta 1 r/w 0x 00 76 0x0904 i2c1ssta 1 r 0x01 76 0x0908 i2c1srx 1 r 0x00 77 0x090c i2c1stx 1 w 0x00 77 0x0910 i2c1mrx 1 r 0x00 77 0x0914 i2c1mtx 1 w 0x00 77 0x0918 i2c1cnt 1 r/w 0x00 77 0x091c i2c1adr 1 r/w 0x00 77 0x0924 i2c1byte 1 r/w 0x00 77 0x0 928 i2c1alt 1 r/w 0x00 78 0x092c i2c1cfg 1 r/w 0x00 78 0x0930 i2c1div 2 r/w 0x1f1f 79 0x0938 i2c1id0 1 r/w 0x00 79 0x093c i2c1id1 1 r/w 0x00 79 0x0940 i2c1id2 1 r/w 0x00 79 0x0944 i2c1id3 1 r/w 0x00 79 0x0948 i2c1ccnt 1 r/w 0x01 79 0x094c i2c1fsta 2 r/w 0x0000 79 spi base address = 0xffff0a00 0x0a00 spista 1 r 0x00 75 0x0a04 spirx 1 r 0x00 75 0x0a08 spitx 1 w 0x00 75 0x0a0c spidiv 1 r/w 0x1 b 75 0x0a10 spicon 2 r/w 0x0000 75
aduc7019/20/21/22/24/25/26/27/28/29 data sheet rev. f | page 44 of 104 address name byte access type default value page pla base address = 0xffff0b00 0x0b00 plaelm0 2 r/w 0x0000 80 0x0b04 plaelm1 2 r/w 0x0000 80 0x0b08 plaelm2 2 r/w 0x0000 80 0x0b0c plaelm3 2 r/w 0x0000 80 0x0b10 plaelm4 2 r/w 0x0000 80 0x0b14 plaelm5 2 r/w 0x0000 80 0x0b18 p laelm6 2 r/w 0x0000 80 0x0b1c plaelm7 2 r/w 0x0000 80 0x0b20 plaelm8 2 r/w 0x0000 80 0x0b24 plaelm9 2 r/w 0x0000 80 0x0b28 plaelm10 2 r/ w 0x0000 80 0x0b2c plaelm11 2 r/w 0x0000 80 0x0b30 plaelm12 2 r/w 0x0000 80 0x0b34 plaelm13 2 r/w 0x0000 80 0x0b38 plaelm14 2 r/w 0x0000 80 0x0b3c plaelm15 2 r/w 0x0000 80 0x0b40 placlk 1 r/w 0x00 81 0x0b44 plairq 4 r/w 0x00000000 81 0x0b48 plaadc 4 r/w 0x00000000 82 0x0b4c pladin 4 r/w 0x00000000 82 0x0b50 pladout 4 r 0x00000000 82 0x0b54 plalck 1 w 0x00 82 external memory base address = 0xfffff0 00 0xf000 xmcfg 1 r/w 0x00 90 0xf010 xm0con 1 r/w 0x00 90 0xf014 xm1con 1 r/w 0x00 90 0xf018 xm2con 1 r/w 0x00 90 0xf01c xm3con 1 r /w 0x00 90 0xf020 xm0par 2 r/w 0x70ff 90 0xf024 xm1par 2 r/w 0x70ff 90 0xf028 xm2par 2 r/w 0x70ff 90 0xf02c xm3par 2 r/w 0x70ff 90 address name byte access type default value page gpio base address = 0xfffff400 0xf400 gp0con 4 r/w 0x00000000 68 0xf404 gp1con 4 r/w 0x00000000 68 0xf408 gp2con 4 r/w 0x00000000 68 0xf40c gp3con 4 r/w 0x00000000 68 0xf410 gp4con 4 r/w 0x00000000 68 0xf420 gp0dat 4 r/w 0x000000xx 1 70 0xf424 gp0set 4 w 0x000000xx 1 70 0xf428 gp0clr 4 w 0x000000xx 1 70 0xf42c gp0par 4 r/w 0x20000000 68 0xf430 gp1dat 4 r/w 0x000000xx 1 69 0xf434 gp1set 4 w 0x000000x x 1 70 0xf438 gp1clr 4 w 0x000000xx 1 70 0xf43c gp1par 4 r/w 0x00000000 68 0xf440 gp2dat 4 r/w 0x000000xx 1 69 0xf444 gp2set 4 w 0x000000 xx 1 70 0xf448 gp2clr 4 w 0x000000xx 1 70 0xf450 gp3dat 4 r/w 0x000000xx 1 69 0xf454 gp3set 4 w 0x000000xx 1 70 0xf458 gp3clr 4 w 0x000000 xx 1 70 0xf460 gp4dat 4 r/w 0x000000xx 1 69 0xf464 gp4set 4 w 0x000000xx 1 70 0xf468 gp4clr 4 w 0x000000xx 1 70 1 x = 0, 1, 2, or 3. flash /ee base address = 0xfffff800 0xf800 feesta 1 r 0x20 52 0xf804 feemod 2 r/w 0x0000 52 0xf808 feecon 1 r/w 0x07 53 0xf80c feedat 2 r/w 0xxxxx 1 53 0xf810 feeadr 2 r/w 0x0000 53 0xf818 feesign 3 r 0xffffff 53 0xf81c feepro 4 r/w 0x00000000 53 0xf820 feehide 4 r/w 0xffffffff 53 1 x = 0, 1, 2, or 3. pwm base address = 0xfffffc00 0xfc00 pwmcon 2 r/w 0x0000 66 0xfc04 pwmsta 2 r/w 0x0000 66 0xfc08 pwmdat0 2 r/w 0x0000 67 0xfc0c pwmdat1 2 r/w 0x0000 67 0xfc10 pwmcfg 2 r/w 0x0000 67 0xfc14 pwmch0 2 r/w 0x0000 67 0xfc18 pwmch1 2 r/w 0x0000 67 0xfc1c pwmch2 2 r/ w 0x0000 67 0xfc20 pwmen 2 r/w 0x0000 67 0xfc24 pwmdat2 2 r/w 0x0000 67
data sheet aduc7019/20/21/22/24/2 5/26/27/28/29 rev. f | page 45 of 104 adc circuit overview the analog-to-digital converter (adc) incorporates a fast, multichannel, 12-bit adc. it can operate from 2.7 v to 3.6 v supplies and is capable of providing a throughput of up to 1 msps when the clock source is 41.78 mhz. this block provides the user with a multichannel multiplexer, a differential track-and-hold, an on-chip reference, and an adc. the adc consists of a 12-bit successive approximation converter based around two capacitor dacs. depending on the input signal configuration, the adc can operate in one of three modes. ? fully differential mode, for small and balanced signals ? single-ended mode, for any single-ended signals ? pseudo differential mode, for any single-ended signals, taking advantage of the common-mode rejection offered by the pseudo differential input the converter accepts an analog input range of 0 v to v ref when operating in single-ended or pseudo differential mode. in fully differential mode, the input signal must be balanced around a common-mode voltage (v cm ) in the 0 v to av dd range with a maximum amplitude of 2 v ref (see figure 48). 04955-011 av dd v cm v cm v cm 0 2v ref 2v ref 2v ref figure 48. examples of balanced signals in fully differential mode a high precision, low drift, factory calibrated, 2.5 v reference is provided on-chip. an external reference can also be connected as described in the band gap reference section. single or continuous conversion modes can be initiated in the software. an external conv start pin, an output generated from the on-chip pla, or a timer0 or timer1 overflow can also be used to generate a repetitive trigger for adc conversions. a voltage output from an on-chip band gap reference propor- tional to absolute temperature can also be routed through the front-end adc multiplexer, effectively an additional adc channel input. this facilitates an internal temperature sensor channel that measures die temperature to an accuracy of ? 3c. transfer function pseudo differential and single-ended modes in pseudo differential or single-ended mode, the input range is 0 v to v ref . the output coding is straight binary in pseudo differential and single-ended modes with 1 lsb = fs /4096, or 2.5 v/4096 = 0.61 mv, or 610 v when v ref = 2.5 v the ideal code transitions occur midway between successive integer lsb values (that is, 1/2 lsb, 3/2 lsb, 5/2 lsb, , fs ? 3/2 lsb). the ideal input/output transfer characteristic is shown in figure 49. 04955-012 output code voltage input 1111 1111 1111 1111 1111 1110 1111 1111 1101 1111 1111 1100 0000 0000 0011 1lsb0v +fs ? 1lsb 0000 0000 0010 0000 0000 0001 0000 0000 0000 1lsb = fs 4096 figure 49. adc transfer function in pseudo differential or single-ended mode fully differential mode the amplitude of the differential signal is the difference between the signals applied to the v in+ and v inC input voltage pins (that is, v in+ ? v inC ). the maximum amplitude of the differential signal is, therefore, Cv ref to +v ref p-p (that is, 2 v ref ). this is regardless of the common mode (cm). the common mode is the average of the two signals, for example, (v in+ + v inC )/2, and is, therefore, the voltage that the two inputs are centered on. this results in the span of each input being cm ?? v ref /2. this voltage has to be set up externally, and its range varies with v ref (see the driving the analog inputs section). the output coding is twos complement in fully differential mode with 1 lsb = 2 v ref /4096 or 2 2.5 v/4096 = 1.22 mv when v ref = 2.5 v. the output result is 11 bits, but this is shifted by 1 to the right. this allows the result in adcdat to be declared as a signed integer when writing c code. the designed code transitions occur midway between successive integer lsb values (that is, 1/2 lsb, 3/2 lsb, 5/2 lsb, , fs ? 3/2 lsb). the ideal input/output transfer characteristic is shown in figure 50. 04955-013 output code voltage input (v in + ? v in ?) 0 1111 1111 1110 0 1111 1111 1100 0 1111 1111 1010 0 0000 0000 0010 0 0000 0000 0000 1 1111 1111 1110 1 0000 0000 0100 1 0000 0000 0010 1 0000 0000 0000 ?v ref + 1lsb +v ref ? 1lsb 0lsb 1lsb = 2 v ref 4096 sign bit figure 50. adc transfer function in differential mode
aduc7019/20/21/22/24/2 5/26/27/28/29 data sheet rev. f | page 46 of 104 typical operation once configured via the adc control and channel selection registers, the adc converts the analog input and provides a 12-bit result in the adc data register. the top four bits are the sign bits. the 12-bit result is placed from bit 16 to bit 27, as shown in figure 51. again, it should be noted that, in fully differential mode, the result is represented in twos complement format. in pseudo differential and single- ended modes, the result is represented in straight binary format. 04955-014 sign bits 12-bit adc result 31 27 16 15 0 figure 51. adc result format the same format is used in dacxdat, simplifying the software. current consumption the adc in standby mode, that is, powered up but not converting, typically consumes 640 a. the internal reference adds 140 a. during conversion, the extra current is 0.3 a multiplied by the sampling frequency (in kilohertz (khz)). figure 43 shows the current consumption vs. the sampling frequency of the adc. timing figure 52 gives details of the adc timing. users control the adc clock speed and the number of acquisition clocks in the adccon mmr. by default, the acquisition time is eight clocks and the clock divider is 2. the number of extra clocks (such as bit trial or write) is set to 19, which gives a sampling rate of 774 ksps. for conversion on the temperature sensor, the adc acquisition time is automatically set to 16 clocks, and the adc clock divider is set to 32. when using multiple channels, including the temperature sensor, the timing settings revert to the user-defined settings after reading the temperature sensor channel. 0 4955-015 adc clock a cq bit trial data adcsta = 0 adcsta = 1 adc interrupt write conv start adc busy adcdat figure 52. adc timing aduc7019 the aduc7019 is identical to the aduc7020 except for one buffered adc channel, adc3, and it has only three dacs. the output buffer of the fourth dac is internally connected to the adc3 channel as shown in figure 53. 04955-016 1msps 12-bit adc 12-bit dac mux a dc3 adc15 dac3 aduc7019 figure 53. adc3 buffered input note that the dac3 output pin must be connected to a 10 nf capacitor to agnd. this channel should be used to measure dc voltages only. adc calibration may be necessary on this channel. mmrs interface the adc is controlled and configured via the eight mmrs described in this section. table 17. adccon register name address default value access adccon 0xffff0500 0x0600 r/w adccon is an adc control register that allows the programmer to enable the adc peripheral, select the mode of operation of the adc (in single-ended mode, pseudo differential mode, or fully differential mode), and select the conversion type. this mmr is described in table 18.
data sheet aduc7019/20/21/22/24/25/26/27/28/29 rev. f | page 47 of 104 table 18 . adccon mmr bit designations bit value description 15:13 reserved. 12: 10 adc clock speed. 000 fadc/1. this divider is provided to obtain 1 msps adc with an external clock <41.78 mhz. 001 fadc/2 (default value). 010 fadc/4. 011 fadc/8. 100 fadc/16. 101 fadc/32. 9:8 adc acquisition time. 00 two clocks. 01 f our clocks. 10 eight clocks (default value). 11 16 clocks. 7 enable start conversion. set by the user to start any type of conversion command. cleared by the user to disable a start conversion (clearing this bit does not stop the adc when continuo usly converting). 6 reserved. 5 adc power control. set by the user to place the adc in normal mode (the adc must be powe red up for at least 5 s before it converts correctly). cleared by the user to place the adc in power - down mode. 4:3 conversion mode. 00 single - ended mode. 01 differential mode. 10 pseudo differential mode. 11 reserved. 2:0 conversion type. 0 00 enable conv start pin as a conversion input. 001 enable timer1 as a conversion input. 010 enable timer0 as a conversion input. 011 single software conversion. sets to 000 after conversion ( note that bit 7 of adccon mmr should be c leared after starting a single software conversion to avoid further conversions triggered by the conv start pin). 100 continuous software conversion. 101 pla conversion. other reserved. table 19. adccp regis ter name address default value access adccp 0xffff0504 0x00 r/w adccp is an adc positive channel selection register. this mmr is described in table 20. table 20 . adccp 1 mmr bit designation bit value description 7:5 reserved. 4:0 positive channel selection bits. 00000 adc0. 00001 adc1. 00010 adc2. 00011 adc3. 00100 adc4. 00101 adc5. 00110 adc6. 00111 adc7. 01000 adc8. 01001 adc9. 01010 adc10. 01011 adc11. 01100 dac0/adc12. 01101 dac1/adc13. 01110 dac2/adc14. 01111 dac3/adc15. 10000 temperature sensor. 10001 agnd (self - diagnostic feature). 10010 internal reference (self - diagnostic feature). 10011 av dd /2. others reserved. 1 adc and dac channel availability de pends on the part model. see ordering guide for details. table 21. adccn register name address default value access adccn 0xffff0508 0x01 r/w adccn is an adc negative channel selection register. this mmr is described in table 22.
aduc7019/20/21/22/24/2 5/26/27/28/29 data sheet rev. f | page 48 of 104 table 22. adccn mmr bit designation bit value description 7:5 reserved. 4:0 negative channel selection bits. 00000 adc0. 00001 adc1. 00010 adc2. 00011 adc3. 00100 adc4. 00101 adc5. 00110 adc6. 00111 adc7. 01000 adc8. 01001 adc9. 01010 adc10. 01011 adc11. 01100 dac0/adc12. 01101 dac1/adc13. 01110 dac2/adc14. 01111 dac3/adc15. 10000 internal reference (self-diagnostic feature). others reserved. table 23. adcsta register name address default value access adcsta 0xffff050c 0x00 r adcsta is an adc status register that indicates when an adc conversion result is ready. the adcsta register contains only one bit, adcready (bit 0), representing the status of the adc. this bit is set at the end of an adc conversion, generating an adc interrupt. it is cleared automatically by reading the adcdat mmr. when the adc is performing a conversion, the status of the adc can be read externally via the adc busy pin. this pin is high during a conversion. when the conversion is finished, adc busy goes back low. this information can be available on p0.5 (see the general-purpose input/output section) if enabled in the adccon register. table 24. adcdat register name address default value access adcdat 0xffff0510 0x00000000 r adcdat is an adc data result register. it holds the 12-bit adc result as shown in figure 51. table 25. adcrst register name address default value access adcrst 0xffff0514 0x00 r/w adcrst resets the digital interface of the adc. writing any value to this register resets all the adc registers to their default values. table 26. adcgn register name address default value access adcgn 0xffff0530 0x0200 r/w adcgn is a 10-bit gain calibration register. table 27. adcof register name address default value access adcof 0xffff0534 0x0200 r/w adcof is a 10-bit offset calibration register. converter operation the adc incorporates a successive approximation (sar) architecture involving a charge-sampled input stage. this architecture can operate in three modes: differential, pseudo differential, and single-ended. differential mode the aduc7019/20/21/22/24/25/26/27/28/29 each contain a successive approximation adc based on two capacitive dacs. figure 54 and figure 55 show simplified schematics of the adc in acquisition and conversion phase, respectively. the adc comprises control logic, a sar, and two capacitive dacs. in figure 54 (the acquisition phase), sw3 is closed and sw1 and sw2 are in position a. the comparator is held in a balanced condition, and the sampling capacitor arrays acquire the differential signal on the input. 04955-017 capacitive dac capacitive dac control logic comparator sw3 sw1 a a b b sw2 c s c s v ref ain0 ain11 mux channel+ channel? figure 54. adc acquisition phase when the adc starts a conversion, as shown in figure 55, sw3 opens, and then sw1 and sw2 move to position b. this causes the comparator to become unbalanced. both inputs are discon- nected once the conversion begins. the control logic and the charge redistribution dacs are used to add and subtract fixed amounts of charge from the sampling capacitor arrays to bring the comparator back into a balanced condition. when the comparator is rebalanced, the conversion is complete. the control logic generates the adc output code. the output impedances of the sources driving the v in+ and v inC input voltage pins must be matched; otherwise, the two inputs have different settling times, resulting in errors. 04955-018 capacitive dac capacitive dac control logic comparator sw3 sw1 a a b b sw2 c s c s v ref ain0 ain11 mux channel+ channel? figure 55. adc conversion phase
data sheet aduc7019/20/21/22/24/2 5/26/27/28/29 rev. f | page 49 of 104 pseudo differential mode in pseudo differential mode, channel? is linked to the v in? pin of the aduc7019/20/21/22/24/25/ 26/27/28/29. sw2 switches between a (channel?) and b (v ref ). the v in? pin must be connected to ground or a low voltage. the input signal on v in+ can then vary from v in? to v ref + v in? . note that v in? must be chosen so that v ref + v in? does not exceed av dd . 04955-019 capacitive dac capacitive dac control logic comparator sw3 sw1 a a b b sw2 c s c s v ref ain0 ain11 v in? mux channel+ channel? figure 56. adc in pseudo differential mode single-ended mode in single-ended mode, sw2 is always connected internally to ground. the v in? pin can be floating. the input signal range on v in+ is 0 v to v ref . 04955-020 capacitive dac capacitive dac control logic comparator sw3 sw1 a b c s c s ain0 ain11 mux channel+ channel? figure 57. adc in single-ended mode analog input structure figure 58 shows the equivalent circ uit of the analog input structure of the adc. the four diodes provide esd protection for the analog inputs. care must be taken to ensure that the analog input signals never exceed the supply rails by more than 300 mv; exceeding 300 mv causes these diodes to become forward- biased and start conducting into the substrate. these diodes can conduct up to 10 ma without causing irreversible damage to the part. the c1 capacitors in figure 58 are typically 4 pf and can be primarily attributed to pin capacitance. the resistors are lumped components made up of the on resistance of the switches. the value of these resistors is typically about 100 . the c2 capacitors are the adcs sampling capacitors and typically have a capacitance of 16 pf. a v dd c1 d d r1 c2 av dd c1 d d r1 c2 04955-021 figure 58. equivalent analog input circuit conversion phase: switches open, track phase: switches closed for ac applications, removing high frequency components from the analog input signal is recommended by using an rc low- pass filter on the relevant analog input pins. in applications where harmonic distortion and signal-to-noise ratio are critical, the analog input should be driven from a low impedance source. large source impedances significantly affect the ac performance of the adc. this can necessitate the use of an input buffer amplifier. the choice of the op amp is a function of the particular application. figure 59 and figure 60 give an example of an adc front end. 04955-061 aduc7019/ aduc702x adc0 10 ? 0.01f figure 59. buffering single-e nded/pseudo differential input 04955-062 aduc7019/ aduc702x adc0 v ref adc1 figure 60. buffering differential inputs when no amplifier is used to drive the analog input, the source impedance should be limited to values lower than 1 k. the maximum source impedance depends on the amount of total harmonic distortion (thd) that can be tolerated. the thd increases as the source impedance increases and the performance degrades. driving the analog inputs internal or external references can be used for the adc. in the differential mode of operation, there are restrictions on the common-mode input signal (v cm ), which is dependent upon the reference value and supply voltage used to ensure that the signal remains within the supply rails. table 28 gives some calculated v cm minimum and v cm maximum values.
aduc7019/20/21/22/24/25/26/27/28/29 data sheet rev. f | page 50 of 104 table 28. v cm ranges av dd v ref v cm min v cm max signal peak - to - peak 3.3 v 2.5 v 1.25 v 2.05 v 2.5 v 2.048 v 1.024 v 2.276 v 2.048 v 1.25 v 0.75 v 2.55 v 1.25 v 3.0 v 2.5 v 1.25 v 1.75 v 2.5 v 2.048 v 1.024 v 1.976 v 2.048 v 1.25 v 0.75 v 2.25 v 1.25 v calibration by default, the factory - set values written to the adc offset (adcof) and gain coefficient r egisters (adcgn) yield optimum performance in terms of end - point errors and linearity for standalone operation of the part (see the specifications section) . if system calibration is required, it is possible to modify the defau lt offset and gain coefficients to improve end - point errors, but note that any modification to the factory - set adcof and adcgn values can degrade adc linearity performance. for system offset error correction, the adc channel input stage must be tied to agn d. a continuous software adc conversion loop must be implemented by modifying the value in adcof until the adc result (adcdat) reads c ode 0 to code 1. if the adcdat value is greater than 1, adcof should be decremented until adcdat reads 0 to 1. offset erro r correction is done digitally and has a resolution of 0.25 lsb and a range of 3.125% of v ref . for system gain error correction, the adc channel input stage must be tied to v ref . a continuous software adc conversion loop must be implemented to modify the value in adcgn until the adc result (adc dat) reads c ode 4094 to code 4095. if the adcdat value is less than 4094, adcgn should be incremented until adcdat reads 4094 to 4095. similar to the offset calibration, the gain calibration resolution is 0.25 lsb wi th a range of 3% of v ref . temperature sensor the aduc7019/20/21/22/24/25/26/27/28 /29 provide voltage output from on - chip band gap references proportional to absolute temperature. this voltage output can also be routed through the front - end adc multiplexer (effectively an additional adc channel input) facilitating an internal temperature sensor channel, measuring die temperature to an accuracy of 3 c. the following is an example routine showing how to use the internal temperature sensor: int main(void) { float a = 0; short b; adccon = 0x20; // power-on the adc delay(2000); adccp = 0x10; // select temperature sensor as an // input to the adc refcon = 0x01; // connect internal 2.5v reference // to vref pin adccon = 0xe4; // continuous conversion while(1) { while (!adcsta){}; // wait for end of conversion b = (adcdat >> 16); // to calculate temperature in c, use the formula: a = 0x525 - b; // ((temperature = 0x525 - sensor voltage) / 1.3) a /= 1.3; b = floor(a); printf("temperature: %d oc\n",b); } return 0; } band gap reference each aduc7019/20/21/22/24/25/26/27/28 /29 provides an on - chip band gap reference of 2.5 v, which can be used for the adc and dac. this internal reference also appears on the v ref pin. when using the interna l reference, a 0.47 f capacitor must be connected from the external v ref pin to agnd to ensure stability and fast response during adc conversions. this reference can also be connected to an external pin (v ref ) and used as a refer - ence for other circuits i n the system. an external buffer is required because of the low drive capability of the v ref output. a program - mable option also allows an external reference input on the v ref pin. note that it is not possible to disable the internal reference. therefore, the external reference source must be capable of overdriving the internal reference source. table 29. refcon register name address default value access refcon 0xffff048c 0x00 r/w the band gap reference interface consists of an 8 - bit mmr refcon , described in table 30 . table 30 . refcon mmr bit designations bit description 7:1 reserved. 0 internal r eference o utput e nable. set by user to connect the internal 2.5 v reference to th e v ref pin. the reference can be used for an external component but must be buffered. cleared by user to disconnect the reference from the v ref pin.
data sheet aduc7019/20/21/22/24/25/ 26/27/28/29 rev. f | page 51 of 104 nonvolatile flash/ee memory the aduc7019/20/21/22/24/25/26/27/28 /29 incorporate flash/ee memory technol ogy on - chip to provide the user with nonvolatile, in - circuit reprogrammable memory space. like eeprom, flash memory can be programmed in - system at a byte level, although it must first be erased. the erase is performed in page blocks. as a result, flash me mory is often and more correctly referred to as flash/ee memory. overall, flash/ee memory represents a step closer to the ideal memory device that includes nonvolatility, in - circuit programmability, high density, and low cost. incorporated in the aduc7019 /20/21/22/24/25/26/27/28 /29 , flash/ee memory technology allows the user to update program code space in - circuit, without the need to replace one - time programmable (otp) devices at remote operating nodes. each part contains a 64 kb array of flash/ee memory. the lower 62 kb is available to the user and the upper 2 kb contain permanently embedded firmware, allowing in - circuit serial download. these 2 kb of embedded firmware also contain a power - on configuration routine that downloads factory - calibrated coeffic ients to the various calibrated peripherals (such as adc, temperature sensor, and band gap references). this 2 kb embedded firmware is hidden from user code. flash/ee memory reliability the flash/ee memory arrays on the parts are fully qualified for two ke y flash/ee memory characteristics: flash/ee memory cycling endurance and flash/ee memory data retention. endurance quantifies the ability of the flash/ee memory to be cycled through many program, read, and erase cycles. a single endurance cycle is composed of four independent , sequential events, defined as 1. initial page erase sequence 2. read/ve rify sequence (single flash/ee) 3. byte program sequence memory 4. second read/ve rify sequence (endurance cycle) in reliability qualification, every half word (16 - bit wide) lo cation of the three pages (top, middle, and bottom) in the flash/ee memory is cycled 10,000 times from 0x0000 to 0xffff. as indicated in table 1 , the flash/ee memory endurance qualification is carried out in accordance with jede c retention lifetime specification a117 over the industrial temperature range of ?40 to +125c. the results allow the specification of a minimum endurance figure over a supply temperature of 10,000 cycles. retention quantifies the ability of the flash/ee memory to retain its programmed data over time. again, the parts are qualified in accordance with the formal jedec retention lifetime specification (a117) at a specific junction temperature (t j = 85c). as part of this qualification procedure, the flash/ee memory is cycled to its specified endurance limit, described in table 1 , before data retention is characterized. this means that the flash/ee memory is guaranteed to retain its data for its fully specified retention lifetime ever y time the flash/ee memory is reprogrammed. in addition, note that retention lifetime, based on an activation energy of 0.6 ev, derates with t j as shown in figure 61. 150 300 450 600 30 40 55 70 85 100 125 135 150 retention (years) 0 04955-085 junction temperature (c) figure 61 . flash/ee memory data re tention programming the 62 kb of flash/ee memory can be programmed in - circuit, using the serial download mode or the provided jtag mode. serial downloading (in - circuit programming) the aduc7019/20/21/22/24/25/26/27/28 /29 facilitate code download via the st andard uart serial port or via the i 2 c port. the parts enter serial download mode after a reset or power cycle if the bm pin is pulled low through an external 1 k? resistor. after a part is in serial download mode, the user can download code to the full 62 kb of flash/ee memory while the device is in - circuit in its target application hardware. an executable pc serial download is provided as part of the development system for serial downloading via the uart. the a n - 806 application note describes the protocol for serial downloading via the i 2 c. jtag access the jtag protocol uses the on - chip jtag interface to facilitate code download and debug.
aduc7019/20/21/22/24/25/26/27/28/29 data sheet rev. f | page 52 of 104 security the 62 kb of flash/ee memory available to the user can be r ead and write protected. bit 31 of the feepro/feehide mmr (see table 42 ) protects the 62 kb from being read through jtag programming mode. the other 31 bits of this register protect writing to the flash memory. each bit protects four pages, that is, 2 kb. write protection is activated for all types of access. three levels of protection ? protection can be set and removed by writing directly into feehide mmr. this protection does not remain after reset. ? protection can be set by writ ing into the feepro mmr. it takes effect only after a save protection command (0x0c) and a reset. the feepro mmr is protected by a key to avoid direct access. the key is saved once and must be entered again to modify feepro. a mass erase sets the key back to 0xffff but also erases all the user code. ? flash can be permanently protected by using the feepro mmr and a particular value of key: 0xdeaddead. entering the key again to modify the feepro register is not allowed. sequence to write the key 1. write the bi t in feepro corresponding to the page to be protected. 2. enable key protection by setting bit 6 of feemod (bit 5 must equal 0). 3. write a 32 - bit key in feeadr and feedat. 4. run the write key command 0x0c in feecon; wait for the read to be successful by monitori ng feesta. 5. reset the part. to remove or modify the protection, the same sequence is used with a modified value of feepro. if the key chosen is the value 0xdead, the memory protection cannot be removed. only a mass erase unprotects the part, but it also era ses all user code. the sequence to write the key is illustrated in the following example (this protects writing page 4 to page 7 of the flash): feepro=0xfffffffd; //protect pages 4 to 7 feemod=0x48; //write key enable feeadr=0x1234; //16 bit key value feedat=0x5678; //16 bit key value feecon= 0x0c; // write key command the same sequence should be followed to protect the part permanently with feeadr = 0xdead and feedat = 0xdead . flash/ee control int erface serial and jtag programming use the flash/ee control interface, which includes the eight mmrs outlined in this section. table 31. feesta register name address default value access feesta 0xfffff800 0x20 r feesta is a read - only register that reflects the status of the flash control interface as described in table 32. table 32 . feesta mmr bit designations bit description 15:6 reserved. 5 reserved. 4 reserved. 3 flash i nterrupt s tatus b it. set automatically when an interrupt o ccurs, that is, when a command is complete and the flash/ee interrupt enable bit in the feemod register is set. cleared when reading the feesta register. 2 flash/ee c ontroller b usy. set automatically when the controller is busy. cleared automatically when the controller is not busy. 1 command f ail. set automatically when a command completes unsuccessfully. cleared automatically when reading the feesta register. 0 command p ass. set by the microconverter when a command completes successfully. cleared autom atic - ally when reading the feesta register. table 33. feemod register name address default value access feemod 0xfffff804 0x0000 r/w feemod sets the operating mode of the flash control interface. ta ble 34 shows feemod mmr bit designations. table 34 . feemod mmr bit designations bit description 15:9 reserved. 8 reserved. this bit should always be set to 0. 7:5 reserved. these bits should always be set to 0 except when writi ng keys. see the sequence to write the key section. 4 flash/ee i nterrupt e nable. set by user to enable the flash/ee interrupt. the interrupt occurs when a command is complete. cleared by user to disable the flash/ee interrup t. 3 erase/write command p rotection. set by user to enable the erase and write commands. cleared to protect the flash against the erase/write command. 2:0 reserved. these bits should always be set to 0.
data sheet aduc7019/20/21/22/24/25/26/27/28/29 rev. f | page 53 of 104 table 35. feecon regist er name address default value access feecon 0xfffff808 0x07 r/w feecon is an 8 - bit command register. the commands are described in table 36. table 36 . command codes in feecon code command description 0x00 1 null idle s tate. 0x01 1 single r ead load feedat with the 16 - bit data. indexed by feeadr. 0x02 1 single w rite write feedat at the address pointed to by feeadr. this operation takes 50 s. 0x03 1 erase/w rite erase the page indexed by feeadr and write feedat at the location pointed by feeadr. this operation takes approxi - mately 24 ms. 0x04 1 single v erify compare the contents of the location pointed by feeadr to the data in feedat. the result of the comparison is returned in feesta , bit 1. 0x05 1 sing le e rase erase the page indexed by feeadr. 0x06 1 mass e rase erase 62 kb of user space. the 2 kb of kernel are protected. this operation takes 2.48 sec. to prevent accidental execution, a command sequence is required to execute this instruction. see the command sequence for executing a mass erase section. 0x07 reserved reserved. 0x08 reserved reserved. 0x09 reserved reserved. 0x0a reserved reserved. 0x0b signature give a signature of the 64 kb of flash/ee in the 24 - bit f eesign mmr. this operation takes 32,778 clock cycles. 0x0c protect this command can run only once. the value of feepro is saved and removed only with a mass erase (0x06) o f the key. 0x0d reserved reserved. 0x0e reserved reserved. 0x0f ping no operation ; interrupt generated. 1 the feecon register always reads 0x07 immediately after execution of any of these commands. table 37. feedat register name address default value access feedat 0xfffff80c 0xxxxx 1 r/w 1 x = 0, 1, 2, or 3 . feedat is a 16 - bit data register . table 38. feeadr register name address default value access feeadr 0xfffff810 0x0000 r/w feeadr is another 16 - bit address register . table 39. feesign register name addr ess default value access feesign 0xfffff818 0xffffff r feesign is a 24- bit code signature. table 40. feepro register name address default value access feepro 0xfffff81c 0x00000000 r/w feepro mmr provides protection following a subsequent reset of the mmr. it requires a software key (see table 42). table 41. feehide register name address default value access feehide 0xfffff820 0xffffffff r/w feehide mmr provides immediate pro tection . it does not require any software key. note that the protection settings in feehide are cleared by a reset (see table 42). table 42 . feepro and feehide mmr bit designations bit description 31 rea d p rotection. cleared by user to protect all code. set by user to allow reading the code. 30:0 write p rotection for page 123 to page 120, page 119 to page 116, and page 0 to page 3. cleared by user to protect the pages from writing. set by user to allow writing the pages. command sequence for executing a mass erase feedat=0x3cff; feeadr = 0xffc3; feemod= feemod|0x8; //erase key enable feecon=0x06; //mass erase command
aduc7019/20/21/22/24/25/26/27/28/29 data sheet rev. f | page 54 of 104 execution time from sram and flash/ee execution from sram fetching instructions from sram takes one clock cycle ; the access time of the sram is 2 ns , and a clock cycle is 22 ns minimum. however, if the instruction involves reading or writing data to memory, one extra cycle must be added if the data is in sram (or three cycles if the data is in flash/ee) : one cycle to execute the instruction, and two cycles to get the 32 - bit data from flash/ee. a control flow instruction (a branch instruction, for example) takes one cycle to fetch but also takes two cycles to fill the pipeline with the new instructions. execution from flash/ee because the flash/ee width is 16 bits and access time for 16 - bit words is 22 ns, execution from flash/ee cannot be done in one cycle (as can be done from sram when the cd bit = 0). also, some dead times are needed bef ore accessing data for any value of the cd bit. in arm mode, where instructions are 32 bits, two cycles are needed to fetch any instruction when cd = 0. in thumb mode, where instructions are 16 bits, one cycle is needed to fetch any instruction. timing is identical in both modes when executing instructions that involve using the flash/ee for data memory. if the instruction to be executed is a control flow instruction, an extra cycle is needed to decode the new address of the program counter, and then four cycles are needed to fill the pipeline. a data - processing instruction involving only the core register does not require any extra clock cycles. however, if it involves data in flash/ee, an extra clock cycle is needed to decode the address of the data, and two cycles are needed to get the 32 - bit data from flash/ee. an extra cycle must also be added before fetching another instruction. data transfer instructions are more complex and are summarized in table 43. table 43 . execution cycles in arm/thumb mode instructions fetch cycles dead time data access dead time ld 1 2/1 1 2 1 ldh 2/1 1 1 1 ldm/push 2/1 n 2 2 n 2 n 1 str 1 2/1 1 2 20 ns 1 strh 2/1 1 20 ns 1 strm/pop 2/1 n 1 2 n 20 ns 1 n 1 1 the swap instruction combines an ld and str instruction with only one fetch, giving a total of eight cycles + 40 ns. 2 n is the amount of data to load or store in the mult iple load/store instruction (1 < n 16). reset and remap the arm exception vectors are all situated at the bottom of the memory array, from address 0x00000000 to address 0x00000020 , as shown in figure 62. 04955-022 kernel interrupt service routines interrupt service routines arm exception vector addresses 0x00000020 0x00011fff 0x0008ffff 0xffffffff flash/ee sram mirror space 0x00000000 0x00000000 0x00010000 0x00080000 figure 62 . remap for exception execution by default, and after any reset, the flash/ee is mirrored at the bottom of the memory array. the remap function allows the programmer to mirror the sram at the bottom of the memory array, which facilitates execution of exception routines from sram instead of from flash/ee. this means exceptions are executed twice as fast, being executed in 32 - bit arm mode with 32- bit wide sram instead of 16 - bit wide flash/ee memory. remap operation when a reset occurs on th e aduc7019/20/21/22/24/25/26/27/ 28 /29 , execution automatically starts in the factory - programmed , internal configuration code. this kernel is hidden and cannot be accessed by user code. if the part is in normal mode ( the bm pin is high), it executes the po wer - on configuration routine of the kernel and then jumps to the reset vector address, 0x00000000, to execute the users reset exception routine. because the flash/ee is mirrored at the bottom of the memory array at reset, the reset interrupt routine must always be written in flash/ee. the remap is done from flash/ee by setting bit 0 of the remap register. caution must be taken to execute this command from flash/ee, above address 0x00080020, and not from the bottom of the ar ray because this is replaced by t he sram. this operation is reversible. the flash/ee can be remapped at address 0x00000000 by clearing bit 0 of the remap mmr. caution must again be taken to execute the remap function from outside the mirrored area. any type of reset remaps the flash/ee me mory at the bottom of the array.
data sheet aduc7019/20/21/22/24/25/26/27/28/29 rev. f | page 55 of 104 reset operation there are four kinds of reset: external, power - on, watchdog expi r ation, and software force. the rststa register indicates the source of the last reset, and rstclr allows clearing of the rststa register. th ese registers can be used during a reset exception service routine to identify the source of the reset. if rststa is null, the reset is external. table 44. remap register name address default value access remap 0xffff0220 0xxx 1 r /w 1 depends on the model. table 45 . remap mmr bit designations bit name description 4 read - o nly b it. indicates the size of the flash/ee memory available. if this bit is set, only 32 kb of flash/ee memory is available. 3 read - o nly b it. indicates the size of the sram memory available. if this bit is set, only 4 kb of sram is available. 2:1 reserved. 0 remap remap b it. set by user to remap the sram to address 0x00000000. cleared automatically after reset to remap the flash/ee m emory to address 0x00000000. table 46. rststa register name address default value access rststa 0xffff0230 0x01 r/w table 47 . rststa mmr bit designations bit description 7:3 reserved. 2 software r ese t. set by user to force a software reset. cleared by setting the corresponding bit in rstclr. 1 w atchdog t imeout. set automatically when a watchdog timeout occurs. cleared by setting the corresponding bit in rstclr. 0 power - on r eset. set automatically wh en a power - on reset occurs. cleared by setting the corresponding bit in rstclr. table 48. rstclr register name address default value access rstclr 0xffff0234 0x00 w note that to clear the rststa register, the user must write 0x0 7 to the rstclr register.
aduc7019/20/21/22/24/2 5/26/27/28/29 data sheet rev. f | page 56 of 104 other analog peripherals dac the aduc7019/20/21/22/24/25/26/ 27/28/29 incorporate two, three, or four 12-bit voltage output dacs on-chip, depending on the model. each dac has a rail-to-rail voltage output buffer capable of driving 5 k/100 pf. each dac has three selectable ranges: 0 v to v ref (internal band gap 2.5 v reference), 0 v to dac ref , and 0 v to av dd . dac ref is equivalent to an external reference for the dac. the signal range is 0 v to av dd . mmrs interface each dac is independently configurable through a control register and a data register. these two registers are identical for the four dacs. only dac0con (see table 50) and dac0dat (see table 52) are described in detail in this section. table 49. dacxcon registers name address default value access dac0con 0xffff0600 0x00 r/w dac1con 0xffff0608 0x00 r/w dac2con 0xffff0610 0x00 r/w dac3con 0xffff0618 0x00 r/w table 50. dac0con mmr bit designations bit name value description 7:6 reserved. 5 dacclk dac update rate. set by user to update the dac using timer1. cleared by user to update the dac using hclk (core clock). 4 dacclr dac clear bit. set by user to enable normal dac operation. cleared by user to reset data register of the dac to 0. 3 reserved. this bit should be left at 0. 2 reserved. this bit should be left at 0. 1:0 dac range bits. 00 power-down mode. the dac output is in three-state. 01 0 v to dac ref range. 10 0 v to v ref (2.5 v) range. 11 0 v to av dd range. table 51. dacxdat registers name address default value access dac0dat 0xffff0604 0x00000000 r/w dac1dat 0xffff060c 0x00000000 r/w dac2dat 0xffff0614 0x00000000 r/w dac3dat 0xffff061c 0x00000000 r/w table 52. dac0dat mmr bit designations bit description 31:28 reserved. 27:16 12-bit data for dac0. 15:0 reserved. using the dacs the on-chip dac architecture cons ists of a resistor string dac followed by an output buffer ampl ifier. the functional equivalent is shown in figure 63. 04955-023 r r r r r dac0 v ref av dd dac ref figure 63. dac structure as illustrated in figure 63, the reference source for each dac is user-selectable in software. it can be av dd , v ref , or dac ref . in 0-to-av dd mode, the dac output transfer function spans from 0 v to the voltage at the av dd pin. in 0-to-dac ref mode, the dac output transfer function spans from 0 v to the voltage at the dac ref pin. in 0-to-v ref mode, the dac output transfer function spans from 0 v to the internal 2.5 v reference, v ref . the dac output buffer amplifier features a true, rail-to-rail output stage implementation. this means that when unloaded, each output is capable of swinging to within less than 5 mv of both av dd and ground. moreover, the dacs linearity specification (when driving a 5 k resistive load to ground) is guaranteed through the full transfer function, except code 0 to code 100, and, in 0-to-av dd mode only, code 3995 to code 4095.
data sheet aduc7019/20/21/22/24/2 5/26/27/28/29 rev. f | page 57 of 104 linearity degradation near ground and av dd is caused by satu- ration of the output amplifier, and a general representation of its effects (neglecting offset and gain error) is illustrated in figure 64. the dotted line in figure 64 indicates the ideal transfer function, and the solid line represents what the transfer function may look like with endpoint nonlinearities due to saturation of the output amplifier. note that figure 64 represents a transfer function in 0-to-av dd mode only. in 0-to-v ref or 0-to-dac ref mode (with v ref < av dd or dac ref < av dd ), the lower nonlinearity is similar. however, the upper portion of the transfer function follows the ideal line right to the end (v ref in this case, not av dd ), showing no signs of endpoint linearity errors. 04955-024 av dd av dd ? 100mv 100mv 0x00000000 0x0fff0000 figure 64. endpoint nonlineariti es due to amplifier saturation the endpoint nonlinearities conceptually illustrated in figure 64 get worse as a function of output loading. most of the aduc7019/20/21/22/24/ 25/26/27/28/29 data sheet specifications assume a 5 k resistive load to ground at the dac output. as the output is forced to source or sink more current, the nonlinear regions at the top or bottom (respectively) of figure 64 become larger. with larger current demands, this can significantly limit output voltage swing. power supply monitor the power supply monitor regulates the iov dd supply on the aduc7019/20/21/22/24/25/26/27/28/29. it indicates when the iov dd supply pin drops below one of two supply trip points. the monitor function is controlled via the psmcon register. if enabled in the irqen or fiqen register, the monitor interrupts the core using the psmi bit in the psmcon mmr. this bit is immediately cleared after cmp goes high. this monitor function allows the user to save working registers to avoid possible data loss due to low supply or brown-out conditions. it also ensures that normal code execution does not resume until a safe supply level is established. table 53. psmcon register name address default value access psmcon 0xffff0440 0x0008 r/w table 54. psmcon mmr bit descriptions bit name description 3 cmp comparator bit. this is a read-only bit that directly reflects the state of the comparator. read 1 indicates that the iov dd supply is above its selected trip point or that the psm is in power-down mode. read 0 indicates that the iov dd supply is below its selected trip point. this bit should be set before leaving the interrupt service routine. 2 tp trip point selection bit. 0 = 2.79 v, 1 = 3.07 v. 1 psmen power supply monitor enable bit. set to 1 to enable the power supply monitor circuit. cleared to 0 to disable the power supply monitor circuit. 0 psmi power supply monitor interru pt bit. this bit is set high by the microconverter after cmp goes low, indicating low i/o supply. the psmi bit can be used to interrupt the processor. after cmp returns high, the psmi bit can be cleared by writing a 1 to this location. a 0 write has no effect. there is no timeout delay; psmi can be immediately cleared after cmp goes high. comparator the aduc7019/20/21/22/24/25/26/ 27/28/29 integrate voltage comparators. the positive input is multiplexed with adc2, and the negative input has two options: adc3 and dac0. the output of the comparator can be configured to generate a system inter- rupt, be routed directly to the programmable logic array, start an adc conversion, or be on an external pin, cmp out , as shown in figure 65. 04955-025 mux irq mux dac0 adc2/cmp0 adc3/cmp1 p0.0/cmp out figure 65. comparator note that because the aduc7022, aduc7025, and adu7027 parts do not support a dac0 output, it is not possible to use dac0 as a comparator input on these parts. hysteresis figure 66 shows how the input o ffset voltage and hysteresis terms are defined. 04955-063 cmp out cmp0 v h v h v os figure 66. comparator hysteresis transfer function
aduc7019/20/21/22/24/25/26/27/ 28/29 data sheet rev. f | page 58 of 104 input offset voltage (v os ) is the difference between the center of t he hysteresis range and the ground level. this can either be positive or negative. the hysteresis voltage (v h ) is one - half the width of the hysteresis range. comparator interface the comparator interface consists of a 16 - bit mmr, cmpcon, which is described in table 56. table 55. cmpcon register name address default value access cmpcon 0xffff0444 0x0000 r/w table 56 . cmpcon mmr bit descriptions bit name value description 15:11 reserved. 10 cmpen comparator enable bit. set by user to enable the comparator. cleared by user to disable the comparator. 9:8 cmpin comparator negative input select bits. 00 av dd /2. 01 adc3 input. 10 dac0 output. 11 reserved. 7:6 cmpoc comparator output configuration bits. 00 reserved. 01 reserved. 10 output on cmp out . 11 irq. 5 cmpol comparator output logic state bit. when low, the comparator output is high if the positive input (cmp0) is above the negative input (cmp1). w hen high, the comparator output is high if the positive input is below the negative input. 4:3 cmpres response time. 00 5 s response time is typical for large signals (2.5 v differential). 17 s response time is typical for small signals (0.65 mv di fferential). 11 3 s typical. 01/10 reserved. 2 cmphyst comparator hysteresis bit. set by user to have a hysteresis of about 7.5 mv. cleared by user to have no hysteresis. 1 cmpori comparator output rising edge interrupt. set automatically when a rising edge occurs on the moni - tored voltage (cmp0). cleared by user by writing a 1 to this bit. 0 cmpofi comparator output falling edge interrupt. set automatically when a falling edge occurs on the monitored voltage (cmp0). cleared by user. oscillat or and pll power control clocking system each aduc7019/20/21/22/24/25/26/27/28 /29 integrates a 32.768 khz 3% oscillator, a clock divider, and a pll. the pll locks onto a multiple (1275) of the internal oscillator or an external 32.768 khz crystal to provi de a stable 41.78 mhz clock (uclk) for the system. to allow power saving, the core can operate at this frequency, or at binary submultiples of it. the actual core oper - ating frequency, uclk/2 cd , is refered to as hclk. the default core clock is the pll cloc k divided by 8 (cd = 3) or 5.22 mhz. the core clock frequency can also come from an external clock on the eclk pin as described in figure 67 . the core clock can be outputted on eclk when using an internal oscillator or extern al crystal. note that when the eclk pin is used to output the core clock, the output signal is not buffered and is not suitable for use as a clock source to an external device without an external buffer. 04955-026 *32.768khz 3% at power-up 41.78mhz oclk 32.768khz watchdog timer int. 32khz* oscillator crystal oscillator wake-up timer mdclk hclk pll core i 2 c uclk analog peripherals /2 cd cd xclko xclki p0.7/xclk p0.7/eclk figure 67 . clocking syst em the selection of the clock source is in the pllcon register. by default, the part uses the internal oscillator feeding the pll. external crystal selection to switch to an external crystal, the user must do the follow ing: 1. enable the timer2 interrupt and configure it for a timeout period of >120 s. 2. follow the write sequence to the pllcon register , setting the mdclk bits to 01 and clearing the osel bit. 3. force the part into nap mode by following the correct write sequence to the powcon register . when the part is interrupted from nap mode by the timer2 interrupt source, the clock source has switched to the external clock.
data sheet aduc7019/20/21/22/24/25/26/27/28/29 rev. f | page 59 of 104 example source code t2val_old= t2val; t2ld = 5; tcon = 0x480; while ((t2val == t2val_old) || (t2val > 3)) //ensures timer value loaded irqen = 0x10; //enable t2 interrupt pllkey1 = 0xaa; pllcon = 0x01; pllkey2 = 0x55; powkey1 = 0x01; powcon = 0x27; // set core into nap mode powkey2 = 0xf4; in noisy en vironments, noise can couple to the external crystal pins, and pll may lose lock momentarily . a pll interrupt is provided in the interrupt controller. the core clock is immediately halted, and this interrupt is only serviced when the lock is restored. in c ase of crystal loss, the watchdog timer should be used. during initialization, a test on the rststa register can determine if the reset came from the watchdog timer. external clock selection to switch to an external clock on p0.7, configure p0.7 in mode 1. the external clock can be up to 44 mhz, providing the tolerance is 1%. example source code t2val_old= t2val; t2ld = 5; tcon = 0x480; while ((t2val == t2val_old) || (t2val > 3)) //ensures timer value loaded irqen = 0x10; //enable t2 interrupt pllkey1 = 0xaa; pllcon = 0x03; //select external clock pllkey2 = 0x55; powkey1 = 0x01; powcon = 0x27; // set core into nap mode powkey2 = 0xf4; power control system a choice of operating modes is available on the aduc7019/ 20/ 21/22/24/25/26/27/28 /29 . table 57 describes what part is powered on in the different modes and indicates the power - up time. table 58 gives some typical val ues of the total current consump - tion (analog + digital supply currents) in the different modes, depending on the clock divider bits. the adc is turned off. note that these values also include current consumption of the regulator and other parts on the tes t board where these values are measured. table 57 . operating modes 1 mode core peripherals pll xtal/t2/t3 irq0 to irq3 start - up/power - on time active x x x x x 130 ms at cd = 0 pause x x x x 24 ns at cd = 0; 3 s at cd = 7 nap x x x 24 ns at cd = 0; 3 s at cd = 7 sleep x x 1.58 ms stop x 1.7 ms 1 x indicates that the part is powered on. table 58 . typical current consumption at 25c in milliamperes pc[2:0] mode cd = 0 cd = 1 cd = 2 cd = 3 cd = 4 cd = 5 cd = 6 cd = 7 000 active 33.1 21. 2 13.8 10 8.1 7.2 6.7 6.45 001 pause 22.7 13.3 8.5 6.1 4.9 4.3 4 3.85 010 nap 3.8 3.8 3.8 3.8 3.8 3.8 3.8 3.8 011 sleep 0.4 0.4 0.4 0.4 0.4 0.4 0.4 0.4 100 stop 0.4 0.4 0.4 0.4 0.4 0.4 0.4 0.4
aduc7019/20/21/22/24/25/26/27/28/29 data sheet rev. f | page 60 of 104 mmrs and keys the operating mode, clocking mode, and pro grammable clock divider are controlled via two mmrs : pllcon (see table 61) and powcon (see table 64 ). pllcon controls the operating mode of the clock system, wh ereas powcon controls the core clock f requency and the power - down mode. to prevent accidental programming, a certain sequence (see table 65) must be followed to write to the pllcon and powcon registers. table 59. pllkeyx registers name ad dress default value access pllkey1 0xffff0410 0x0000 w pllkey2 0xffff0418 0x0000 w table 60. pllcon register name address default value access pllcon 0xffff0414 0x21 r/w table 61 . pllcon mmr bit designat ions bit name value description 7:6 reserved. 5 osel 32 khz pll input selection. set by user to select the internal 32 khz oscillator. set by default. cleared by user to select the external 32 khz crystal. 4:2 reserved. 1:0 mdclk clocking modes. 00 reserved. 01 pll. default configuration. 10 reserved. 11 external clock on the p0.7 pin. table 62. powkeyx registers name address default value access powkey1 0xffff0404 0x0000 w powkey2 0xffff040c 0x0000 w tab le 63. powcon register name address default value access powcon 0xffff0408 0x0003 r/w table 64 . powcon mmr bit designations bit name value description 7 reserved. 6:4 pc operating m odes. 000 active m ode. 001 pause m ode. 010 nap. 011 sleep m ode. irq0 to irq3 and timer2 can wake up the part. 100 stop m ode. irq0 to irq3 can wake up the part. others reserved. 3 reserved. 2:0 cd cpu c lock d ivider b its. 000 41.78 mhz. 001 20.89 mh z. 010 10.44 mhz. 011 5.22 mhz. 100 2.61 mhz. 101 1.31 mhz. 110 653 khz. 111 326 khz. table 65 . pllcon and powcon write sequence pllcon powcon pllkey1 = 0xaa powkey1 = 0x01 pllcon = 0x01 powcon = u ser v alue pll key2 = 0x55 powkey2 = 0xf4
data sheet aduc7019/20/21/22/24/25/26/27/28/29 rev. f | page 61 of 104 digital peripherals 3 - phase pwm each aduc7019/20/21/22/24/25/26/27/28 /29 provides a flexible and programmable, 3 - phase pulse - width modulation (pwm) waveform generator. it can be programmed to generate the required switching p atterns to drive a 3 - phase voltage source inverter for ac induction motor control (acim). note that only active high patterns can be produced. the pwm generator produces three pairs of pwm signals on the six pwm output pins (pwm0 h , pwm0 l , pwm1 h , pwm1 l , pwm 2 h , and pwm2 l ). the six pwm output signals consist of three high - side drive signals and three low - side drive signals. the switching frequency and dead time of the generated pwm patterns are programmable using the pwmdat0 and pwmdat1 mmrs. in addition, thre e duty - cycle control registers (pwmch0, pwmch1, and pwmch2) directly control the duty cycles of the three pairs of pwm signals. each of the six pwm output signals can be enabled or disabled by separate output enable bits of the pwmen register. in addition, three control bits of the pwmen register permit crossover of the two signals of a pwm pair. in crossover mode, the pwm signal destined for the high - side switch is diverted to the comple - mentary low - side output. the signal destined for the low - side switch is diverted to the corresponding high - side output signal. in many applications, there is a need to provide an isolation barrier in the gate - drive circuits that turn on the inverter power devices. in general, there are two common isolation technique s: optic al isolation using optocouplers and transformer isolation using pulse transformers. the pwm controller permits mixing of the output pwm signals with a high frequency chopping signal to permit easy interface to such pulse transformers. the features of this gate - drive chopping mode can be controlled by the pwmcfg register. an 8 - bit value within the pwmcfg register directly controls the chopping frequency. high frequency chopping can be independently enabled for the high - side and low - side outputs using separat e control bits in the pwmcfg register. the pwm generator can operate in one of two distinct modes : single update mode or double update mode. in single update mode, the duty cycle values are programmable only once per pwm period so that the resulting pwm pa tterns are symmetrical about the midpoint of the pwm period. in the double update mode, a second updating of the pwm duty cycle values is implemented at the midpoint of the pwm period. in double update mode, it is also possible to produce asymmetrical pwm patterns that produce lower harmonic distortion in 3 - phase pwm inverters. this technique permits closed - loop controllers to change the average voltage applied to the machine windings at a faster rate. as a result, faster closed - loop bandwidths are achieve d. the operating mode of the pwm block is selected by a control bit in the pwmcon register. in single update mode, a n internal synchronization pulse, pwmsync , is produced at the start of each pwm period. in double update mode, an additional pwmsy nc pulse i s produced at the midpoint of each pwm period. the pwm block can also provide an internal synchronization pulse on the pwm sync pin that is synchronized to the pwm switching frequency. in single update mode, a pulse is produced at the start of each pwm peri od. in double update mode, an additional pulse is produced at the mid - point of each pwm period. the width of the pulse is programmable through the pwmdat2 register. the pwm block can also accept an external synchro - nization pulse on the pwm sync pin. the se lection of external synchronization or internal synchronization is in the pwmcon register. the sync input timing can be synchronized to the internal peripheral clock, which is selected in the pwmcon register. if the external synchronization pulse from the chip pin is asynchronous to the internal peripheral clock (typical case), the external pwmsync is considered asynchronous and should be synchronized. the synchronization logic adds latency and jitter from the external pulse to the actual pwm outputs. the s ize of the pulse on the pwm sync pin must be greater than two core clock periods. the pwm signals produced by the aduc7019/20/21/22/24/25/ 26/27/28 /29 can be shut off via a dedicated asynchronous pwm shutdown pin, pwm trip . when brought low, pwm trip instanta - neously places all six pwm outputs in the off state (high). this hardware shutdown mechanism is asynchronous so that the associated pwm disable circuitry does not go through any clocked logic. this ensures correct pwm shutdown even in the event of a core clock loss. status information about the pwm system is available to the user in the pwmsta register. in particular, the state of the pwm trip pin is available, as well as a status bit that indicates whether oper - ation is in the first half or the second hal f of the pwm period. 40- pin package devices on the 40 - pin package devices, the pwm outputs are not directly accessible, as described in the general - purpose input/output section. one channel can be brought out on a gpio (see table 78) via the pla as shown in th e following example: pwmcon = 0x1; // enables pwm o/p pwmdat0 = 0x055f; // pwm switching freq // configure port pins gp4con = 0x300; // p4.2 as pla output gp3con = 0x1; // p3.0 configured as // output of pwm0 //(internally) // pwm0 onto p4.2 plaelm8 = 0x0035; // p3.0 (pwm output) // input of element 8 plaelm10 = 0x0059; // pwm from element 8
aduc7019/20/21/22/24/25/26/27/28/29 data sheet rev. f | page 62 of 104 description of the p wm block a functional block diagram of the pwm controller is shown in figure 68 . the ge neration of the six output pwm signals on pin pwm0 h to pin pwm2 l is controlled by the following four important blocks: ? the 3 - phase pwm timing unit. the core of the pwm controller, this block generates three pairs of complemente d and dead - time - adjusted, center - based pwm signals. this unit also generates the internal synchronization pulse, pwmsync. it also controls whether the external pwm sync pin is used . ? the output control unit. this block can redirect the outputs of the 3 - phase timing unit for each channel to either the high - side or low - side output. in addition, the output control unit allows individual enabling/disabling of each of the six pwm output signals. ? the gate drive unit. this block can generate the high frequency chop ping and its subsequent mixing with the pwm signals. ? the pwm shutdown controller. this block controls the pwm shutdown via the pwm trip pin and generates the correct reset signal for the timing unit. the pwm controller is driven by the aduc7019/20/21/22/24/ 25/26/27/28 /29 core clock frequency and is capable of generating two interrupts to the arm core. one interrupt is generated on the occurrence of a pwmsync pulse, and the other is generated on the occurrence of any pwm shutdown action. 3 - phase timing unit pwm switching frequency (pwmdat0 mmr) the pwm switching frequency is controlled by the pwm period register, pwmdat0. the fundamental timing unit of the pwm controller is t core = 1/ f core whe re f core is the c ore frequency of the microconverter. t herefor e, for a 41.78 mhz f core , the fundamental time increment is 24 ns. the value written to the pwmdat0 register is effectively the number of f core clock increments in one - half a pwm period. the required pwmdat0 value is a function of the desired pwm switching frequency (f pwn ) and is given by pwmdat0 = f core /(2 f pwm ) therefore, the pwm switching period, t s , can be written as t s = 2 pwmdat0 t core the largest value that can be written to the 16 - bit pwmdat0 mmr is 0xffff = 65 , 535, which corresponds to a mini mum pwm switching frequency of f pwm(min) = 41.78 10 6 /(2 65 , 535) = 318.75 hz note that pwmdat0 value s of 0 and 1 are not defined and should not be used. pwm switching dead time (pwmdat1 mmr) the second important parameter that must be set up in the ini tial configuration of the pwm block is the switching dead time. this is a short delay time introduced between turning off one pwm signal (0h, for example) and turning on the complementary signal (0l). this short time delay is introduced to permit the power switch to be turned off (in this case, 0h) to completely recover its blocking capability before the complementary switch is turned on. this time delay prevents a potentially destructive short - circuit condition from developing across the dc link capacitor of a typical voltage source inverter. the dead time is controlled by the 10 - bit, read/write pwmdat1 register. there is only one dead - time register that controls the dead time inserted into all three pairs of pwm output signals. the dead time, t d , is relat ed to the v alue in the pwmdat1 register by t d = pwmdat1 2 t core therefore, a pwmdat1 value of 0x00a (= 10), introduces a 426 ns delay between the turn - off on any pwm signal (0h, for example) and the turn - on of its complementary signal (0l). the amount of the dead time ca n, therefore , be programmed in increments of 2t core (or 49 ns for a 41.78 mhz core clock). 04955-027 pwm0 h pwm0 l pwm1 h pwm1 l pwm2 h pwm2 l pwmcon pwmdat0 pwmdat1 pwmdat2 pwmch0 pwmch1 pwmch2 configuration registers duty cycle registers 3-phase pwm timing unit pwmen output control unit pwm shutdown controller pwmcfg gate drive unit pwm sync pwm trip to interrupt controller sync core clock figure 68 . overview of the pwm controller
data sheet aduc7019/20/21/22/24/2 5/26/27/28/29 rev. f | page 63 of 104 the pwmdat1 register is a 10-bit register with a maximum value of 0x3ff (= 1023), which corresponds to a maximum programmed dead time of t d(max) = 1023 2 t core = 1023 2 24 10 C9 = 48.97 s for a core clock of 41.78 mhz. the dead time can be programmed to be zero by writing 0 to the pwmdat1 register. pwm operating mode (pwmcon and pwmsta mmrs) as discussed in the 3-phase pwm section, the pwm controller of the aduc7019/20/21/22/24/25/ 26/27/28/29 can operate in two distinct modes: single update mode and double update mode. the operating mode of the pwm controller is determined by the state of bit 2 of the pwmcon register. if this bit is cleared, the pwm operates in the single update mode. setting bit 2 places the pwm in the double update mode. the default operating mode is single update mode. in single update mode, a single pwmsync pulse is produced in each pwm period. the rising edge of this signal marks the start of a new pwm cycle and is used to latch new values from the pwm configuration registers (pwmdat0 and pwmdat1) and the pwm duty cycle registers (pwmch0, pwmch1, and pwmch2) into the 3-phase timing unit. in addition, the pwmen register is latched into the output control unit on the rising edge of the pwmsync pulse. in effect, this means that the characteristics and resulting duty cycles of the pwm signals can be updated only once per pw m period at the start of each cycle. the result is symmetrical pwm patterns about the midpoint of the switching period. in double update mode, there is an additional pwmsync pulse produced at the midpoint of each pwm period. the rising edge of this new pwmsync pulse is again used to latch new values of the pwm configuration registers, duty cycle registers, and the pwmen register. as a result, it is possible to alter both the characteristics (switching frequency and dead time) as well as the output duty cycles at the midpoint of each pwm cycle. consequently, it is also possible to produce pwm switching patterns that are no longer symmetrical about the midpoint of the period (asymmetrical pwm patterns). in double update mode, it could be necessary to know whether operation at any point in time is in either the first half or the second half of the pwm cycle. this information is provided by bit 0 of the pwmsta register, which is cleared during operation in the first half of each pwm period (between the rising edge of the original pwmsync pulse and the rising edge of the new pwmsync pulse introduced in double update mode). bit 0 of the pwmsta register is set during operation in the second half of each pwm period. this status bit allows the user to make a determination of the particular half cycle during implementation of the pwmsync interrupt service routine, if required. the advantage of double update mode is that lower harmonic voltages can be produced by the pwm process, and faster control bandwidths are possible. however, for a given pwm switching frequency, the pwmsync pulses occur at twice the rate in the double update mode. because new duty cycle values must be computed in each pwmsync interrupt service routine, there is a larger computational burden on the arm core in double update mode. pwm duty cycles (pwmch0, pwmch1, and pwmch2 mmrs) the duty cycles of the six pwm output signals on pin pwm0 h to pin pwm2 l are controlled by the three 16-bit read/write duty cycle registers, pwmch0, pwmch1, and pwmch2. the duty cycle registers are programmed in integer counts of the fundamental time unit, t core . they define the desired on time of the high-side pwm signal produced by the 3-phase timing unit over half the pwm period. the switching signals produced by the 3-phase timing unit are also adjusted to incorporate the programmed dead time value in the pwmdat1 register. the 3-phase timing unit produces active high signals so that a high level corresponds to a command to turn on the associated power device. figure 69 shows a typical pair of pwm outputs (in this case, 0h and 0l) from the timing unit in single update mode. all illustrated time values indicate the integer value in the associated register and can be converted to time by simply multiplying by the fundamental time increment, t core . note that the switching patterns are perfectly symmetrical about the midpoint of the switching period in this mode because the same values of pwmch0, pwmdat0, and pwmdat1 are used to define the signals in both half cycles of the period. figure 69 also demonstrates how the programmed duty cycles are adjusted to incorporate the desired dead time into the resulting pair of pwm signals. the dead time is incorporated by moving the switching instants of both pwm signals (0h and 0l) away from the instant set by the pwmch0 register. 0 4955-028 ? pwmdat0 2 0h 0l pwmsync pwmsta (0) pwmdat0 +pwmdat0 2 ? pwmdat0 2 00 pwmdat0 pwmdat2 + 1 pwmch0 2 pwmdat1 2 pwmdat1 pwmch0 figure 69. typical pwm outputs of the 3-phase timing unit (single update mode)
aduc7019/20/21/22/24/2 5/26/27/28/29 data sheet rev. f | page 64 of 104 both switching edges are moved by an equal amount (pwmdat1 t core ) to preserve the symmetrical output patterns. also shown are the pwmsync pulse and bit 0 of the pwmsta register, which indicates whether operation is in the first or second half cycle of the pwm period. the resulting on times of the pwm signals over the full pwm period (two half periods) produced by the timing unit can be written as follows: on the high side t 0hh = pwmdat0 + 2( pwmch0 ? pwmdat1 ) t core t 0hl = pwmdat0 ? 2( pwmch0 ? pwmdat1 ) t core and the corresponding duty cycles ( d ) d 0h = t 0hh / t s = ? + ( pwmch0 ? pwmdat1 )/ pwmdat0 and on the low side t 0lh = pwmdat0 ? 2( pwmch0 + pwmdat1 ) t core t 0ll = pwmdat0 + 2 (pwmch0 + pwmdat1 ) t core and the corresponding duty cycles ( d ) d ol = t 0lh / t s = ? ? ( pwmch0 + pwmdat1 )/ pwmdat0 the minimum permissible t 0h and t 0l values are zero, corresponding to a 0% duty cycle. in a similar fashion, the maximum value is t s , corresponding to a 100% duty cycle. figure 70 shows the output signals from the timing unit for operation in double update mode . it illustrates a general case where the switching frequency, dead time, and duty cycle are all changed in the second half of the pwm period. the same value for any or all of these quantities can be used in both halves of the pwm cycle. however, there is no guarantee that symmetrical pwm signals are produced by the timing unit in double update mode. figure 70 also shows that the dead time insertions into the pwm signals are done in the same way as in single update mode. 04955-029 ?pwmdat0 1 2 0h 0l pwmsync pwmsta (0) pwmdat0 1 +pwmdat0 1 2 ? pwmdat0 2 2 +pwmdat0 2 2 pwmch0 2 pwmch0 1 2 pwmdat1 2 2 pwmdat1 1 pwmdat2 2 + 1 pwmdat2 1 + 1 00 pwmdat0 2 figure 70. typical pwm outputs of the 3-phase timing unit (double update mode) in general, the on times of th e pwm signals in double update mode can be defined as follows: on the high side t 0hh = ( pwmdat0 1 /2 + pwmdat0 2 /2 + pwmch0 1 + pwmch0 2 ? pwmdat1 1 ? pwmdat1 2 ) t core t 0hl = ( pwmdat0 1 /2 + pwmdat0 2 /2 ? pwmch0 1 ? pwmch0 2 + pwmdat1 1 + pwmdat1 2 ) t core where subscript 1 refers to the value of that register during the first half cycle, and subscript 2 refers to the value during the second half cycle. the corresponding duty cycles ( d ) are d 0h = t 0hh / t s = ( pwmdat0 1 /2 + pwmdat0 2 /2 + pwmch0 1 + pwmch0 2 ? pwmdat1 1 ? pwmdat1 2 )/ ( pwmdat0 1 + pwmdat0 2 ) on the low side t 0lh = ( pwmdat0 1 /2 + pwmdat0 2 /2 + pwmch0 1 + pwmch0 2 + pwmdat1 1 + pwmdat1 2 ) t core t 0ll = ( pwmdat0 1 /2 + pwmdat0 2 /2 ? pwmch0 1 ? pwmch0 2 ? pwmdat1 1 ? pwmdat1 2 ) t core where subscript 1 refers to the value of that register during the first half cycle, and subscript 2 refers to the value during the second half cycle. the corresponding duty cycles (d) are d 0l = t 0lh / t s = (pwmdat0 1 /2 + pwmdat0 2 /2 + pwmch0 1 + pwmch0 2 + pwmdat1 1 + pwmdat1 2 )/( pwmdat0 1 + pwmdat0 2 ) for the completely general case in double update mode (see figure 70), the switching period is given by t s = ( pwmdat0 1 + pwmdat0 2 ) t core again, the values of t 0h and t 0l are constrained to lie between zero and t s . pwm signals similar to those illustrated in figure 69 and figure 70 can be produced on the 1h, 1l, 2h, and 2l outputs by programming the pwmch1 and pwmch2 registers in a manner identical to that described for pwmch0. the pwm controller does not produce any pwm outputs until all of the pwmdat0, pwmch0, pwmch1, and pwmch2 registers have been written to at least once. when these registers are written, internal counting of the timers in the 3-phase timing unit is enabled. writing to the pwmdat0 register starts the internal timing of the main pwm timer. provided that the pwmdat0 register is written to prior to the pwmch0, pwmch1, and pwmch2 registers in the initialization, the first pwmsync pulse and interrupt (if enabled) appear 1.5 t core pwmdat0 seconds after the initial write to the pwmdat0 register in single update mode. in double update mode, the first pwmsync pulse appears after pwmdat0 t core seconds.
data sheet aduc7019/20/21/22/24/2 5/26/27/28/29 rev. f | page 65 of 104 output control unit the operation of the output control unit is controlled by the 9-bit read/write pwmen register. this register controls two distinct features of the output control unit that are directly useful in the control of electronic counter measures (ecm) or binary decimal counter measures (bdcm). the pwmen register contains three crossover bits, one for each pair of pwm outputs. setting bit 8 of the pwmen register enables the crossover mode for the 0h/0l pair of pwm signals, setting bit 7 enables crossover on the 1h/1l pair of pwm signals, and setting bit 6 enables crossover on the 2h/2l pair of pwm signals. if crossover mode is enabled for any pair of pwm signals, the high-side pwm signal from the timing unit (0h, for example) is diverted to the associated low-side output of the output control unit so that the signal ultimately appears at the pwm0 l pin. of course, the corresponding low-side output of the timing unit is also diverted to the complementary high-side output of the output control unit so that the signal appears at the pwm0 h pin. following a reset, the three crossover bits are cleared, and the crossover mode is disabled on all three pairs of pwm signals. the pwmen register also contains six bits (bit 0 to bit 5) that can be used to in dividually enable or disable each of the six pwm outputs. if the associated bit of the pwmen register is set, the corresponding pwm output is disabled regardless of the corresponding value of the duty cycle register. this pwm output signal remains in the off state as long as the corresponding enable/disable bit of the pwmen register is set. the implementation of this output enable function is imple- mented after the crossover function. following a reset, all six enable bits of the pwmen register are cleared, and all pwm outputs are enabled by default. in a manner identical to the duty cycle registers, the pwmen is latched on the rising edge of the pwmsync signal. as a result, changes to this register become effective only at the start of each pwm cycle in single update mode. in double update mode, the pwmen register can also be updated at the midpoint of the pwm cycle. in the control of an ecm, only tw o inverter legs are switched at any time, and often the high-side device in one leg must be switched on at the same time as the low-side driver in a second leg. therefore, by programming identical duty cycle values for two pwm channels (for example, pwmch0 = pwmch1) and setting bit 7 of the pwmen register to cross over the 1h/1l pair of pwm signals, it is po ssible to turn on the high-side switch of phase a and the low-side switch of phase b at the same time. in the control of ecm, it is usual for the third inverter leg (phase c in this example) to be disabled for a number of pwm cycles. this function is implemented by disabling both the 2h and 2l pwm outputs by setting bit 0 and bit 1 of the pwmen register. this situation is illustrated in figure 71, where it can be seen that both the 0h and 1l si gnals are identical because pwmch0 = pwmch1 and the crossover bit for phase b is set. 04955-030 pwmch0 = pwmch1 0h 0l 1h 1l 2h 2l pwmch0 = pwmch1 2 pwmdat1 2 pwmdat1 pwmdat0 pwmdat0 figure 71. active low pwm signals suitable for ecm control, pwmch0 = pwmch1, crossover 1h/1l pair and disable 0l, 1h, 2h, and 2l outputs in single update mode. in addition, the other four signals (0l, 1h, 2h, and 2l) have been disabled by setting the appropriate enable/disable bits of the pwmen register. in figure 71, the appropriate value for the pwmen register is 0x00a7. in normal ecm operation, each inverter leg is disabled for certain periods of time to change the pwmen register based on the position of the rotor shaft (motor commutation). gate drive unit the gate drive unit of the pwm controller adds features that simplify the design of isolated gate-drive circuits for pwm inverters. if a transformer-coupled, power device, gate-drive amplifier is used, the active pwm signal must be chopped at a high frequency. the 16-bit read/write pwmcfg register programs this high frequency chopping mode. the chopped active pwm signals can be required for the high-side drivers only, the low-side drivers only, or both the high-side and low- side switches. therefore, independent control of this mode for both high-side and low-side switches is included with two separate control bits in the pwmcfg register. typical pwm output signals with high frequency chopping enabled on both high-side and low-side signals are shown in figure 72. chopping of the high-side pwm outputs (0h, 1h, and 2h) is enabled by setting bit 8 of the pwmcfg register. chopping of the low-side pwm outputs (0l, 1l, and 2l) is enabled by setting bit 9 of the pwmcfg register. the high chopping frequency is controlled by the 8-bit word (gdclk) placed in bit 0 to bit 7 of the pwmcfg register. the period of this high frequency carrier is t chop = (4 ( gdclk + 1)) t core the chopping frequency is, therefore, an integral subdivision of the microconverter core frequency f chop = f core /(4 (gdclk + 1))
aduc7019/20/21/22/24/2 5/26/27/28/29 data sheet rev. f | page 66 of 104 the gdclk value can range from 0 to 255, corresponding to a programmable chopping frequency rate of 40.8 khz to 10.44 mhz for a 41.78 mhz core frequency. the gate drive features must be programmed before operation of the pwm controller and are typically not changed during normal operation of the pwm controller. following a reset, all bits of the pwmcfg register are cleared so that high frequency chopping is disabled, by default. 0 4955-031 pwmch0 pwmch0 pwmdat0 pwmdat0 0l 0h 2 pwmdat1 4 (gdclk + 1) t core 2 pwmdat1 figure 72. typical pwm signals with high frequency gate chopping enabled on both high-side and low-side switches pwm shutdown in the event of external fault conditions, it is essential that the pwm system be instantaneously sh ut down in a safe fashion. a low level on the pwm trip pin provides an instantaneous, asynchronous (independent of the microconverter core clock) shutdown of the pwm controller. all six pwm outputs are placed in the off state, that is, in low state. in addition, the pwmsync pulse is disabled. the pwm trip pin has an internal pull-down resistor to disable the pwm if the pin becomes disconnected. the state of the pwm trip pin can be read from bit 3 of the pwmsta register. if a pwm shutdown command occurs, a pwmtrip interrupt is generated, and internal timing of the 3-phase timing unit of the pwm controller is stopped. following a pwm shutdown, the pwm can be reenabled (in a pwmtrip interrupt service routine, for example) only by writing to all of the pwmdat0, pwmch0, pwmch1, and pwmch2 registers. provided that the external fault is cleared and the pwmtrip is returned to a high level, the internal timing of the 3-phase timing unit resumes, and new duty-cycle values are latched on the next pwmsync boundary. note that the pwmtrip interrupt is available in irq only, and the pwmsync interrupt is available in fiq only. both interrupts share the same bit in the interrupt controller. therefore, only one of the interrupts can be used at a time. see the interrupt system section for further details. pwm mmrs interface the pwm block is controlled via the mmrs described in this section. table 66. pwmcon register name address default value access pwmcon 0xfffffc00 0x0000 r/w pwmcon is a control register that enables the pwm and chooses the update rate. table 67. pwmcon mmr bit descriptions bit name description 7:5 reserved. 4 pwm_syncsel external sync select. set to use external sync. cleared to use internal sync. 3 pwm_extsync external sync select. set to select external synchronous sync signal. cleared for asynchronous sync signal. 2 pwmdbl double update mode. set to 1 by user to enable double update mode. cleared to 0 by the user to enable single update mode. 1 pwm_sync_en pwm synchronization enable. set by user to enable synchronization. cleared by user to disabl e synchronization. 0 pwmen pwm enable bit. set to 1 by user to enable the pwm. cleared to 0 by user to disable the pwm. also cleared automatically with pwmtrip (pwmsta mmr). table 68. pwmsta register name address default value access pwmsta 0xfffffc04 0x0000 r/w pwmsta reflects the status of the pwm. table 69. pwmsta mmr bit descriptions bit name description 15:10 reserved. 9 pwmsyncint pwm sync interrupt bit. writing a 1 to this bit clears this interrupt. 8 pwmtripint pwm trip interrupt bit. writing a 1 to this bit clears this interrupt. 3 pwmtrip raw signal from the pwm trip pin. 2:1 reserved. 0 pwmphase pwm phase bit. set to 1 by the micro- converter when the timer is counting down (first half). cleared to 0 by the microconverter when the timer is counting up (second half).
data sheet aduc7019/20/21/22/24/25/26/27/28/29 rev. f | page 67 of 104 table 70. pwmcfg register name address default value access pwmcf g 0xfffffc10 0x0000 r/w pwmcfg is a gate chopping register. table 71 . pwmcfg mmr bit descriptions bit name description 15:10 reserved. 9 choplo low -s ide g ate c hopping e nable b it. 8 chophi high - s ide g ate c hopping e nable b it. 7: 0 gdclk pwm g ate c hopping period (u nsigned). table 72. pwmen register name address default value access pwmen 0xfffffc20 0x0000 r/w pwmen allows enabling of channel outputs and crossover. see its bit definitions in table 73. table 73 . pwmen mmr bit descriptions bit name description 8 0h0l_xovr channel 0 o utput c rossover e nable bit. set to 1 by user to enable channel 0 output crossover. cleared to 0 by user to disable channe l 0 output crossover. 7 1h1l_xovr channel 1 o utput c rossover e nable b it. set to 1 by user to enable channel 1 output crossover. cleared to 0 by user to disable channel 1 output crossover. 6 2h2l_xovr channel 2 o utput c rossover e nable b it. set to 1 by u ser to enable channel 2 output crossover. cleared to 0 by user to disable channel 2 output crossover. 5 0l_en 0l o utput e nable b it. set to 1 by user to disable the 0l output of the pwm. cleared to 0 by user to enable the 0l output of the pwm. 4 0h_en 0h o utput e nable b it. set to 1 by user to disable the 0h output of the pwm. cleared to 0 by user to enable the 0h output of the pwm. 3 1l_en 1l o utput e nable b it. set to 1 by user to disable the 1l output of the pwm. cleared to 0 by user to enable the 1l out put of the pwm. 2 1h_en 1h output enable bit. set to 1 by user to disable the 1h output of the pwm. cleared to 0 by user to enable the 1h output of the pwm. 1 2l_en 2l o utput e nable b it. set to 1 by user to disable the 2l output of the pwm. cleared to 0 by user to enable the 2l output of the pwm. 0 2h_en 2h o utput e nable b it. set to 1 by user to disable the 2h output of the pwm. cleared to 0 by user to enable the 2h output of the pwm. table 74. pwmdat0 register name address def ault value access pwmdat0 0xfffffc08 0x0000 r/w pwmdat0 is an unsigned 16 - bit register for switching period. table 75. pwmdat1 register name address default value access pwmdat1 0xfffffc0c 0x0000 r/w pwmdat1 is an unsigned 10 - b it register for dead time. table 76. pwmchx registers name address default value access pwmch0 0xfffffc14 0x0000 r/w pwmch1 0xfffffc18 0x0000 r/w pwmch2 0xfffffc1c 0x0000 r/w pwmch0, pwmch1, and pwmch2 are channel duty cycles f or the three phases. table 77. pwmdat2 register name address default value access pwmdat2 0xfffffc24 0x0000 r/w pwmdat2 is an unsigned 10 - bit register for pwm sync pulse width. general - purpose input/output the aduc7019/20/21/22/ 24/25/26/27/28 /29 provide 40 general - purpose, bidirectional i/o (gpio) pins. all i/o pins are 5 v tolerant, meaning the gpios support an input voltage of 5 v. in general, many of the gpio pins have multiple functions (see tabl e 78 for the pin function definitions). by default, the gpio pins are configured in gpio mode. all gpio pins have an internal pull - up resistor (of about 100 k?) , and their drive capability is 1.6 ma. note that a maximum of 20 gpios can drive 1.6 ma at the same time. using the gpxpar registers, it is possible to enable/disable the pull - up resistors for the following p orts: p0.0, p0.4, p0.5, p0.6, p0.7, and the eight gpios of p1. the 40 gpios are grouped in five ports, port 0 to port 4 (port x) . each port i s controlled by four or five mmrs. note that the kernel changes p0.6 from its default configuration at reset (mrst) to gpio mode. if mrst is used for external circuitry, an external pull - up resistor should be used to ensure that the level on p0.6 does not drop when the kernel switches mode. otherwise, p0.6 goes low for the reset period. for example , if mrst is required for power - down, it can be reconfigured in gp0con mmr. the input level of any gpio can be read at any time in the gpxdat mmr, even when the p in is configured in a mode other than gpio. the pla input is always active. when the aduc7019/20/21/22/24/25/26/27/28 /29 part enters a power - saving mode, the gpio pins retain their state.
aduc7019/20/21/2 2/24/25/26/27/28/29 data sheet rev. f | page 68 of 104 table 78 . gpio pin function descriptions configuration port pin 00 01 10 11 0 p0.0 gpio cmp ms0 plai[7] p0.1 gpio pwm2 h ble p0.2 gpio pwm2 l bhe p0.3 gpio trst a16 adc busy p0.4 gpio/irq0 pwm trip ms1 plao[1] p0.5 gpio/irq1 adc busy ms2 plao[2] p0.6 gpio/t1 mrst plao[3] p0.7 gpio eclk/xclk 1 sin plao[4] 1 p1.0 gpio/t1 sin scl0 plai[0] p1.1 gpio sout sda0 plai[1] p1.2 gpio rts scl1 plai[2] p1.3 gpio cts sda1 plai[3] p1.4 gpio/irq2 ri sclk plai[4] p1.5 gpio/irq3 dcd miso plai[5] p1.6 gpi o dsr mosi plai[6] p1.7 gpio dtr cs plao[0] 2 p2.0 gpio conv start 2 sout plao[5] p2.1 gpio pwm0 h ws plao[6] p2.2 gpio pwm0 l rs plao[7] p2.3 gpio ae p2.4 gpio pwm0 h ms0 p2.5 gpio pwm0 l ms1 p2.6 gpio pwm1 h ms2 p2.7 gpio pwm1 l ms3 3 p3.0 gpio pwm0 h ad0 plai[8] p3.1 gpio pwm0 l ad1 plai[9] p3.2 gpio pwm1 h ad2 plai[10] p3.3 gpio pwm1 l ad3 plai[11] p3.4 gpio pwm2 h ad4 plai[12] p3.5 gpio pwm2 l ad5 plai[13] p3.6 gpio pwm trip ad6 plai[14] p3.7 gpio pwm sync ad7 plai[15] 4 p4.0 gpio ad8 plao[8] p4.1 gpio ad9 plao[9] p4.2 gpio ad10 plao[10] p4.3 gpio ad11 plao[11] p4.4 gpio ad12 plao[12] p4.5 gpio ad13 plao[13] p4.6 gpio ad14 plao[14] p4 .7 gpio ad15 plao[15] 1 when configured in mode 1, p0.7 is eclk by de fault, or core clock output. to configure it as a clock input, the mdclk bits in pllcon must be set to 11. 2 the conv start signal is active in all modes of p2.0. table 79. gpxcon registers name address default value access gp0con 0xfffff400 0x00000000 r/w gp1con 0xfffff404 0x00000000 r/w gp2con 0xfffff408 0x00000000 r/w gp3con 0xfffff40c 0x00000000 r/w gp4con 0xfffff410 0x00000000 r/w gpxc on are the port x control registers, which select the function of each pin of port x as described in table 80. table 80 . gpxcon mmr bit descriptions bit description 31:30 reserved. 29:28 select f uncti on of the px.7 p in. 27:26 reserved. 25:24 select f unction of the px.6 p in. 23:22 reserved. 21:20 select f unction of the px.5 p in. 19:18 reserved. 17:16 select f unction of the px.4 p in. 15:14 reserved. 13:12 select f unction of the px.3 p in. 11:10 r eserved. 9:8 select f unction of the px.2 p in. 7:6 reserved. 5:4 select f unction of the px.1 p in. 3:2 reserved. 1:0 select f unction of the px.0 p in. table 81. gpxpar registers name address default value access gp0par 0xfffff4 2c 0x20000000 r/w gp1par 0xfffff43c 0x00000000 r/w gpxpar program the parameters for port 0 and port 1. note that the gpxdat mmr must always be written after changing the g px par m mr . table 82 . gpxpar mmr bit descriptions bit descr iption 31 reserved. 30 :29 drive strength px.7. 28 pull - up disable px.7. 27 reserved. 26:25 drive strength px.6. 24 pull - up disable px.6. 23 reserved. 22:21 drive strength px.5. 20 pull - up disable px.5. 19 reserved. 18:17 drive strength px.4. 16 pull - up disable px.4. 15 reserved. 14:13 drive strength px.3. 12 pull - up disable px.3. 11 reserved. 10:9 drive strength px.2. 8 pull - up disable px.2. 7 reserved. 6:5 drive strength px.1. 4 pull - up disable px.1. 3 reserved. 2:1 drive strength px .0. 0 pull - up disable px.0.
data sheet aduc7019/20/21/22/24/25/26/27/28/29 rev. f | page 69 of 104 table 83 . gpio drive strength control bits descriptions control bits value description 00 medium drive strength. 01 low drive strength. 1x high drive strength. 3.6 3.4 3.2 3.0 2.8 2.6 2.4 2.2 2.0 ?24 ?18 ?12 ?6 0 6 12 18 24 load current (ma) voltage on each pin (v) high drive strength medium drive strength low drive strength 04955-031 figure 73 . programmable strength for high level (typical values ) 0.5 0.4 0.3 0.2 0.1 0 ?0.1 ?0.2 ?0.3 ?0.4 ?24 ?18 ?12 ?6 0 6 12 18 24 load current (ma) voltage on each pin (v) high drive strength medium drive strength low drive strength 04955-032 figure 74 . programmable strength for low level (typical values ) the drive strength bits can be written to one time only after reset. more writing to related bits has no effect on changing drive strength. the gpio drive strength and pull - up disable is not always adjustable for the gpio port. some control bits cannot be changed (see table 84 ). table 84 . gpx par control bits access descriptions bit gp0par gp1par 31 reserved reserved 30 to 29 r/w r/w 28 r/w r/w 27 reserved reserved 26 to 25 r/w r/w 24 r/w r/w 23 reserved reserved 22 to 21 r/w r (b00) 20 r/w r/w 19 reserved reserved 18 to 17 r (b00) r (b00) 16 r/w r/w 15 reserved reserved 14 to 13 r (b00) r (b00) 12 r/w r/w 11 reserved reserved 10 to 9 r (b00) r (b00) 8 r/w r/w 7 reserved reserved 6 to 5 r (b00) r (b00) 4 r/w r/w 3 reserved reserved 2 to 1 r (b00) r (b00) 0 r/w r/w
aduc7019/20/21/2 2/24/25/26/27/28/29 data sheet rev. f | page 70 of 104 table 85. gpxdat registers name address default value 1 access gp0dat 0xfffff420 0x000000xx r/w gp1dat 0xfffff430 0x000000xx r/w gp2dat 0xfffff440 0x000000xx r/w gp3dat 0xfffff450 0x000000xx r/w gp4dat 0xfffff460 0x000000xx r/w 1 x = 0, 1, 2, or 3. gpxdat are port x configuration and data registers. they configure the direction of the gpio pins of port x, set the output value for the pins configured as output, and store the input value of the pins configured as input. table 86 . gpxdat mmr bit descriptions bit description 31:24 direction of the d ata. set to 1 by user to configure the gpio pin as an output . cleared to 0 by user to configure the gpio pin as an input. 23:16 port x d ata o utput. 15:8 reflect the s tate of port x p ins at r eset ( r ead o nly). 7:0 port x d ata i nput ( r ead o nly). table 87. gpxset registers name address default value 1 access gp0set 0xfffff424 0x000000xx w gp1set 0xfffff434 0x000000xx w gp2set 0xfffff444 0x0000 00xx w gp3set 0xfffff454 0x000000xx w gp4set 0xfffff464 0x000000xx w 1 x = 0, 1, 2, or 3. gpxset are data set port x registers. table 88 . gpxset mmr bit descriptions bit description 31:24 reserved. 23:16 data port x s et b it. se t to 1 by user to set bit on port x ; also sets the corresponding bit in the gpxdat mmr. cleared to 0 by user; does not affect the data out. 15:0 reserved. table 89. gpxclr registers name address default value 1 access gp0clr 0xff fff428 0x000000xx w gp1clr 0xfffff438 0x000000xx w gp2clr 0xfffff448 0x000000xx w gp3clr 0xfffff458 0x000000xx w gp4clr 0xfffff468 0x000000xx w 1 x = 0, 1, 2, or 3. gpxclr are data clear port x registers. table 90 . gpxclr mmr bit descriptions bit description 31:24 reserved. 23:16 data port x c lear b it. set to 1 by user to clear bit on port x; also clears the corresponding bit in the gpxdat mmr. cleared to 0 by user; does not affect the data out. 15:0 reserved. serial port m ux the serial port mux multiplexes the serial port peripherals (an spi, uart, and two i 2 cs) and the programmable logic array (pla) to a set of 10 gpio pins. each pin must be configured to one of its specific i/o functions as described in table 91. table 91 . spm configuration spmmux gpio uart uart/i 2 c/spi pla (00) (01) (10) (11) spm0 p1.0 sin i2c0scl plai[0] spm1 p1.1 sout i2c0sda plai[1] spm2 p1.2 rts i2c1scl plai[2] spm3 p1.3 cts i2c1sda plai[3] spm4 p1.4 ri sclk plai[4] spm5 p1.5 dcd miso plai[5] spm6 p1.6 dsr mosi plai[6] spm7 p1.7 dtr cs plao[0] spm8 p0.7 eclk/xclk sin plao[4] spm9 p2.0 conv sout plao[5] table 91 also details the mod e for each of the spmmux pins. this configuration must be done via the gp0con, gp1con, and gp2con mmrs. by default, these 10 pins are configured as gpios. uart serial interfac e the uart peripheral is a full - duplex, universal, asynchronous receiver/transmit ter. it is fully compatible with the 16,450 serial port standard. the uart performs serial - to - parallel conversions on data characters received from a peripheral device or modem, and parallel - to - serial conversions on data characters received from the cpu. t he uart includes a fractional divider for baud rate generation and has a network addressable mode. the uart function is made available on the 10 pins of the aduc7019/20/ 21/22/24/25/26/27/28 /29 (see table 92). table 92 . uart signal description pin signal description spm0 (mode 1) sin serial r eceive d ata. spm1 (mode 1) sout serial t ransmit d ata. spm2 (mode 1) rts request to s end. spm3 (mode 1) cts clear to s end. spm4 (mode 1) ri ring i ndicator. spm5 (mode 1) dcd data c arrier d etect. spm6 (mode 1) dsr data s et r eady. spm7 (mode 1) dtr data t erminal r eady. spm8 (mode 2) sin serial r eceive d ata. spm9 (mode 2) sout serial t ransmit d ata.
data sheet aduc7019/20/21/22/24/25/26/27/28/29 rev. f | page 71 of 104 the serial communication adopts an asynchronous protocol, which supports various word lengths, stop bits, and parity generation options selectable in the configuration register. baud rate generation there are two ways of generating the uart baud rate, normal 450 uart baud rate generation and the fractional divider. no rmal 450 uart baud rate generation the baud rate is a divided version of the core clock using the value s in the comdiv0 and comdiv1 mmrs (16 - bit value, dl). dl 2 16 - 2 mhz 78 . 41 = rate baud cd table 93 gives some common baud rate values. table 93 . baud rate using the normal baud rate generator baud rate cd dl actual baud rate % error 9 600 0 0x88 9 600 0 19,200 0 0x44 19,200 0 115,200 0 0x0b 118,691 3 9 600 3 0x11 9600 0 19,200 3 0x08 20,400 6.25 115,200 3 0x01 163,200 41.67 fractional divider the fractional divider, combined with the normal baud rate generator, produces a wider range of more accurate baud rates. 04955-032 /16dl uart fben core clock /2 /(m+n/2048) figure 75 . baud rate generation options calculation of the baud rate usin g fractional divider is as follows: ? ? ? ? ? ? + = 2048 2 16 2 mhz 78 . 41 n m dl rate baud cd 2 dl 16 2 rate baud mhz 78 . 41 = 2048 n + m cd for example, generation of 19,200 baud with cd bits = 3 ( table 93 gives dl = 0x08) is 2 8 16 2 19200 mhz 78 . 41 2048 3 = + 06 . 1 2048 = + where: m = 1 n = 0.06 2048 = 128 2048 128 2 8 16 2 mhz 78 . 41 = rate baud 3 where: baud rate = 19,200 bps error = 0%, compared to 6.25% with the normal baud rate generator. uart register definitions the uart interface consists of 12 registers: comtx, comrx, comdiv0, comien0, com div1, comiid0, comcon0, comcon1, comsta0, comsta1, comscr, and comdiv2. table 94. comtx register name address default value access comtx 0xffff0700 0x00 r/w comtx is an 8 - bit transmit register. table 95. c omrx register name address default value access comrx 0xffff0700 0x00 r comrx is an 8 - bit receive register. table 96. comdiv0 register name address default value access comdiv0 0xffff0700 0x00 r/w comdiv0 is a low byte divisor latch. comtx, comrx, and comdiv0 share the same address location. comtx and comrx can be accessed when bit 7 in the comcon0 register is cleared. comdiv0 can be accessed when bit 7 of comcon0 is set. table 97. comien0 register nam e address default value access comien0 0xffff0704 0x00 r/w comien0 is the interrupt enable register. table 98 . comien0 mmr bit descriptions bit name description 7:4 n/a reserved. 3 edssi modem s tatus i nterrupt e nable b it. set b y user to enable generation of an interrupt if any of comsta1[3:1] is set. cleared by user. 2 elsi rx s tatus i nterrupt e nable b it. set by user to enable generation of an interrupt if any of comsta0[ 4:1 ] is set. cleared by user. 1 etbei enable t ransmit b u ffer e mpty i nterrupt. set by user to enable interrupt when buffer is empty during a transmission. cleared by user. 0 erbfi enable r eceive b uffer f ull i nterrupt. set by user to enable interrupt when buffer is full during a reception. cleared by user.
aduc7019/20/21/2 2/24/25/26/27/28/29 data sheet rev. f | page 72 of 104 tabl e 99. comdiv1 register name address default value access comdiv1 0xffff0704 0x00 r/w comdiv1 is a divisor latch (high byte) register. table 100 . comiid0 register name address default value access comiid0 0xffff0708 0x01 r comiid0 is the interrupt identification register. table 101 . comiid0 mmr bit descriptions bit 2:1 status bits bit 0 nint priority definition clearing operation 00 1 n/a no interrupt n/a 11 0 1 (highest) receive l ine s tatus i nterrupt read comsta0 10 0 2 receive buffer full interrupt read comrx 01 0 3 transmit buffer empty interrupt write data to comtx or read comiid 0 00 0 4 (lowest) modem s tatus i nterrupt read comsta1 table 102 . comcon 0 register name address default value access comcon0 0xffff070c 0x00 r/w comcon0 is the line control register. table 103 . comcon0 mmr bit descriptions bit name description 7 dlab divisor l atch a ccess. set by user to enable acces s to the comdiv0 and comdiv1 registers. cleared by user to disable access to comdiv0 and comdiv1 and enable access to comrx and comtx. 6 brk set b reak. set by user to force sout to 0. cleared to operate in normal mode. 5 sp stick p arity. set by user to f orce parity to defined values: 1 if eps = 1 and pen = 1, 0 if eps = 0 and pen = 1. 4 eps even parity s elect b it. set for even parity. cleared for odd parity. 3 pen parity e nable b it. set by user to transmit and check the parity bit. cleared by user for no parity transmission or checking. 2 stop stop b it. set by user to transmit 1.5 stop bits if the word length is five bits or 2 stop bits if the word length is six bits, seven bits, or eight bits. the receiver checks the first stop bit only, regardless of the number of stop bits selected. cleared by user to generate 1 stop bit in the transmitted data. 1:0 wls word l ength s elect: 00 = five bits, 01 = six bits, 10 = seven bits, 11 = eight bits . table 104 . comcon1 register name add ress default value access comcon1 0xffff0710 0x00 r/w comcon1 is the modem control register. table 105 . comcon1 mmr bit descriptions bit name description 7:5 reserved. 4 loopback loop b ack. set by user to enable loopback mode. i n loop back mode, sout (see table 78) is forced high. the modem signals are also directly connected to the status inputs (rts to cts and dtr to dsr). cleared by user to be in normal mode. 3 pen parity e nable b it. set by user t o transmit and check the parity bit. cleared by user for no parity transmission or checking. 2 stop stop b it. set by user to transmit 1.5 stop bits if the word length is five bits, or 2 stop bits if the word length is six bits, seven bits, or eight bits. the receiver checks the first stop bit only, regardless of the number of stop bits selected. cleared by user to generate 1 stop bit in the transmitted data. 1 rts request to s end. set by user to force the rts output to 0. cleared by user to force the rts output to 1. 0 dtr data t erminal r eady. set by user to force the dtr output to 0. cleared by user to force the dtr output to 1. table 106 . comsta0 register name address default value access comsta0 0xffff0714 0x60 r comsta0 is the line status register. table 107 . comsta0 mmr bit descriptions bit name description 7 reserved. 6 temt comtx and shift register e mpty s tatus b it. set automatically if comtx and shift register are empty. cleared automatically w hen writing to comtx . 5 thre c omtx e mpty. set automatically if comtx is empty. cleared automati cally when writing to comtx. 4 bi break e rror. set when sin is held low for more than the maximum word length. cleared automatically. 3 fe framing e rror. set when an invalid stop bit occurs. cleared automatically. 2 pe parity e rror. set when a parity error occurs. cleared automatically. 1 oe overrun e rror. set automatically if data is over - written before being read. cleared automatically. 0 dr data r eady. s et automatically when comrx is full. cleared by reading comrx.
data sheet aduc7019/20/21/22/24/25/26/27/28/29 rev. f | page 73 of 104 table 108 . comsta1 register name address default value access comsta1 0xffff0718 0x00 r comsta1 is a modem status register. table 109 . comst a1 mmr bit descriptions bit name description 7 dcd data c arrier d etect. 6 ri ring indicator . 5 dsr data s et r eady. 4 cts clear to s end. 3 ddcd delta dcd. set automatically if dcd changed state since last comsta1 read. cleared automati - cally by reading comsta1. 2 teri trailing e dge ri. set if ri changed from 0 to 1 since comsta1 was last read. cleared automatically by reading comsta1. 1 ddsr delta dsr. set automatically if dsr changed state since comsta1 was last read. cleared automatically by reading comsta1. 0 dcts delta cts. set automatically if cts changed state since comsta1 was last read. cleare d automatically by reading comsta1. table 110 . comscr register name address default value access comscr 0xffff071c 0x00 r/w c omscr is an 8 - bit scratch register used for temporary storage. it is also used in network addressable uart mode. table 111 . comdiv2 register name address default value access comdiv2 0xffff072c 0x0000 r/w comdiv2 is a 16 - bit frac tional baud divide register. table 112 . comdiv2 mmr bit descriptions bit name description 15 fben fractional b aud r ate g enerator e nable b it. set by user to enable the fractional baud rate generator. cleared by user to generate baud rate using the standard 450 uart baud rate generator. 14:13 reserved. 12:11 fbm[1:0] m if fbm = 0, m = 4 (see the fractional divider section). 10:0 fbn[10:0] n (see the fractional divider section ). network addressable uart mode this mode connects the microconverter to a 256 - node serial netwo rk, either as a hardware single master or via software in a multimaster network. bit 7 (enam) of the comien1 register must be set to enable uart in network ad dressable mode (see table 114 ). note that there is no parity check in this mode. network addressable uart register definitions four additional registers, comien0, comien1, comiid1, and comadr are used in network addressable uar t mode only . in network address mode, the least significant bit of the comien1 register is the transmitted network address control bit. if set to 1, the device is transmitting an address. if cleared to 0, the device is transmitting data. for example, the f ollowing master - based code transmits the slaves address followed by the data: comien1 = 0xe7; //setting enam, e9bt, e9br, etd, nabp comtx = 0xa0; // slave address is 0xa0 while(!(0x020==(comsta0 & 0x020))){} // wait for adr tx to finish. comien1 = 0xe6; // clear nab bit to indicate data is coming comtx = 0x55; // tx data to slave: 0x55 table 113 . comien1 register name address default value access comien1 0xffff0720 0x04 r/w comien1 is an 8 - bit network e nable register. table 114 . comien1 mmr bit descriptions bit name description 7 enam network a ddress m ode e nable b it. set by user to enable network address mode. cleared by user to disable network address mode. 6 e9bt 9 - b it t ransmi t e nable b it. set by user to enable 9 - bit transmit . enam must be set . cleared by user to disable 9 - bit transmit. 5 e9br 9 -b it r eceive e nable b it. set by user to enable 9 - bit receive. enam must be set. cleared by user to disable 9 - bit receive. 4 eni net work i nterrupt e nable b it. 3 e9bd word l ength. set for 9 - bit data. e9bt has to be cleared. cleared for 8 - bit data. 2 etd transmitter p in d river e nable b it. set by user to enable sout pin as an output in slave mode or multimaster mode. cleared by user; so ut is three - state. 1 nabp network address b it. i nterrupt polarity bit. 0 nab network a ddress bit (if nabp = 1). set by user to transmit the slave address. cleared by user to transmit data. table 115 . comiid1 register name addre ss default value access comiid1 0xffff0724 0x01 r comiid1 is an 8 - bit network interrupt register. bit 7 to bit 4 are reserved (see table 116).
aduc7019/20/21/2 2/24/25/26/27/28/29 data sheet rev. f | page 74 of 104 table 116 . comiid1 mmr bit descriptions bit 3:1 status bits bit 0 nint priority definition clearing operation 000 1 no interrupt 110 0 2 matching network address read comrx 101 0 3 ad dress transmitted, buffer empty write data to comtx or read comiid0 011 0 1 receive line status interrupt read comsta0 010 0 2 receive buffer full interrupt read comrx 001 0 3 transmit buffer empty interrupt write data to comtx or read comiid0 000 0 4 modem status interrupt read comsta1 note that to receive a network address interrupt, the slave must ensure that bit 0 of comie n0 (enable receive buffer full interrupt) is set to 1. table 117 . comadr register name address default value access comadr 0xffff0728 0xaa r/w comadr is an 8 - bit, read/write network address register that holds the address checked for by the network addressable uart. upon receiving this address, the device interrupts the processor and/or sets the appropriate status bit in comiid1. serial peripheral in terface the aduc7019/20/21/22/24/25/26/27/28 /29 integrate a complete hardware seri al peripheral interface (spi) on - chip. spi is an industry standard, synchronous serial interface that allows eight bits of data to be synchronously transmitted and simultaneously received, that is, full duplex up to a maximum bit rate of 3.48 mb , as shown in table 118 . the spi interface is not operational with core clock divider (cd) bits. powcon[2:0] = 6 or 7 in master mode. the spi port can be configured for master or slave operation . and typically consists of four pins : miso ( p1.5) , mosi (p1.6) , scl k (p1.4) , and cs (p1.7). on the transmit side, the spitx register ( and a tx shift register outside it) load s data onto the transmit pin (in slave mode, miso; in master mode, mosi) . the transmit status bit , bit 0, i n spista indica tes whether there is valid data in the spit x register. similarly, the receive data path consists of the spirx register (and an rx shift register). spista, bit 3 indicates whether there is valid data in the spirx register. if valid data in th e spirx register is overwritten or if valid data in the rx shift register is discarded, spista, bit 5 (the overflow bit) is set. miso (master in, slave out) pin the miso pin is configured as an input line in master mode and an output line in slave mode. t he miso line on the master (data in) should be connected to the miso line in the slave device (data out). the data is transferred as byte wide (8 - bit) serial data, msb first. mosi (master out, slave in) pin the mosi pin is configured as an output line in m aster mode and an input line in slave mode. the mosi line on the master (data out) should be connected to the mosi line in the slave device (data in). the data is transferred as byte wide (8 - bit) serial data, msb first. scl k (serial clock i/o) pin the mast er serial clock (scl k ) is used to synchronize the data being transmitted and received through the mosi scl k period. therefore, a byte is transmitted/received after eight scl k periods. the scl k pin is configured as an output in master mode and as an input i n slave mode. in master mode, the polarity and phase of the clock are controlled by the spicon register, and the bit rate is defined in the spidiv register as follows: ) 1 ( 2 spidiv f f uclk clock serial + = the maximum speed of the spi clock is dependent on the clock div ider bits and is summarized in table 118. table 118 . spi speed vs. clock divider bits in master mode cd bits 0 1 2 3 4 5 spidiv in h ex 0x05 0x0b 0x17 0x2f 0x5f 0xbf spi d peed in mhz 3.482 1.741 0.870 0 .435 0.218 0.109 in slave mode, the spicon register must be configured with the phase and polarity of the expected input clock. the slave accepts data from an external master up to 10.4 mb at cd = 0. the formula to determine the maximum speed is as follow s: 4 hclk clock serial f f = in both master and slave modes, data is transmitted on one edge of the scl signal and sampled on the other. therefore, it is important that the polarity and phase be configured the same for the master and slave devices. chip selec t ( cs input) pin in spi slave mode, a transfer is initiated by the assertion of cs , which is an active low input signal. the spi port then transmits and receives 8 - bit data until the transfer is concluded by deasser tion of cs . in slave mode, cs is always an input.
data sheet aduc7019/20/21/22/24/25/26/27/28/29 rev. f | page 75 of 104 spi registers the following mmr registers are used to control the spi interface: spista, spirx, spitx, spidiv, and spicon. table 119 . sp ista register name address default value access spista 0xffff0a00 0x00 r spista is an 8 - bit read - only status register. only bit 1 or bit 4 of this register generates an interrupt. bit 6 of the spicon register determines which bit generates the interrupt . table 120 . spista mmr bit descriptions bit description 7:6 reserved. 5 spirx d ata r egister o verflow s tatus b it. set if spirx is overflowing. cleared by reading the spirx register. 4 spirx d ata r egister irq. set automatically if bit 3 or bit 5 is set. cleared by reading the spirx register. 3 spirx d ata r egister f ull s tatus b it. set automatically if a valid data is present in the spirx register. cleared by reading the spirx register. 2 spitx d ata r egister u nderflow s tatus b it. s et auto - matically if spitx is underflowing. cleared by writing in the spitx register. 1 spitx data r egister irq. set automatically if bit 0 is clear or bit 2 is set. cleared by writing in the spitx register or if finished transmission disabling the spi. 0 spitx d ata r egister e mpty s tatus b it. set by writing to spitx to send data. this bit is set during transmission of data. cleared when spitx is empty. table 121 . spirx register name address default value access spirx 0xffff0a04 0x00 r spirx is an 8 - bit , read - only receive register. table 122 . spitx register name address default value access spitx 0xffff0a08 0x00 w spitx is an 8 - bit , write - only transmit register. table 123 . spidiv register name address default value access spidiv 0xffff0a0c 0x1b r/w spidiv is an 8 - bit , serial clock divider register. table 124 . spicon register name address default value access spicon 0xffff0a10 0x0000 r/w spicon is a 16 - bit control register. table 125 . spicon mmr bit descriptions bit description function 15:13 reserved n/a 12 continuous transfer e nable set by user to enable continuous transfer. in master mode, the transfer continues unti l no valid data is available in the tx register. cs is asserted and remains asserted for the duration of each 8 - bit serial transfer until tx is empty. cleared by user to disable continuous transfer. each transfer consists of a single 8 - bi t serial transfer. if valid data exists in the spitx register, then a new transfer is initiated after a stall period. 11 loop b ack e nable set by user to connect miso to mosi and test software. cleared by user to be in normal mode. 10 slave miso o utput e n able set this bit to disable the output driver on the miso pin. the miso pin becomes open drain when this bit is set. clear this bit for miso to operate as normal. 9 clip s elect output e nable s et by user in master mode to disable the chip select output. c leared by user to enable the chip select output. p1.7 should be configured as cs before spicon is configured as a master when t h e chip select output enabled is also selected. 8 spirx overflow overwrite enable set by user, the valid data in the rx register is overwritten by the new serial byte received. cleared by user, the new serial byte received is discarded. 7 spitx underflow mode set by user to transmit 0. cleared by user to transmit the previous data. 6 transfer and interrupt mode set by user to initiate transfer with a write to the spitx register. interrupt occurs only when tx is empty. cleared by user to initiate transfer with a read of the spirx register. interrupt occurs only when rx is full. 5 lsb first transfer enable bit set by user, the lsb is transmitted first. cleared by user, the msb is transmitted first. 4 reserved 3 serial clock polarity mode bit set by user, the serial clock idles high. cleared by user, the serial clock idles low. 2 serial c lock p hase m ode b it set by user, the serial clock pulses at the beginning of each serial bit transfer. cleared by user, the serial clock pulses at the end of each serial bit transfer. 1 master mode enable bit set by user to enable master mode. cleared by user to enable slave mod e. 0 spi enable bit set by user to enable the spi. cleared by user to disable the spi.
aduc7019/20/21/22/24/25/26/27/28/29 data sheet rev. f | page 76 of 104 i 2 c - compatible interface s the aduc7019/20/21/22/24/25/26/27/28 /29 support two licensed i 2 c interfaces. the i 2 c interfaces are both implemented as a hard - ware master and a full slave interface. because the two i 2 c inter - faces are identical, this data sheet describes only i2c0 in detail. note that the two masters and one of the slaves have individual interrupts (see the interrupt system sec tion). note that when configured as an i 2 c master device, the aduc7019/20/21/22/24/25/26/27/28 /29 cannot generate a repeated start condition. the two gpio pins used for data transfer, sda x and scl x , are configured in a wired - and format that allows arbitrat ion in a multimaster system. these pins require external pull - up resistors. typical pull - up values are 10 k?. the i 2 c bus peripheral address in the i 2 c bus system is pro - grammed by the user. this id can be modified any time a transfer is not in progress. t he user can configure the interface to respond to four slave addresses. the transfer sequence of an i 2 c system consists of a master device initiating a transfer by generating a start condition while the bus is idle. the master transmits the slave device ad dress and the direction of the data transfer during the initial address transfer. if the master does not lose arbitration and the slave acknowledges, the data transfer is initiated. this continues until the master issues a stop condition and the bus become s idle. the i 2 c peripheral can be configured only as a master or slave at any given time. the same i 2 c channel cannot simultaneously support master and slave modes. serial clock generation the i 2 c master in the system generates the serial clock for a trans fer. the master channel can be configured to operate in fast mode (400 khz) or standard mode (100 khz). the bit rate is defined in the i2c0div mmr as follows: ) (2 ) 2 ( divl divh + + + = uclk clock serial f f where: f uclk = clock before the clock divider. divh = the high period of the clock. divl = the low period of the clock. thus, for 100 khz operation, divh = divl = 0xcf and for 400 khz, divh = 0x28, divl = 0x3c the i2cxdiv register s correspond to divh:divl. slave addresses the registers i2c0id0, i2c0id1, i2c0id2, and i2c0id3 contain the device ids. the device compares the four i2c0idx registers to the address byte. to be correctly addressed, the seven msbs of either id register must be identical to that of the seven msbs of the first received address byte. the lsb of the id re gisters (the transfer direction bit) is ignored in the process of address recognition. i 2 c registers the i 2 c peripheral interface consists of 18 mmrs, which are discussed in this section. table 126 . i2cxmsta registers name address default value access i2c0msta 0xffff0800 0x00 r/w i2c1msta 0xffff0900 0x00 r/w i2cxmsta are status registers for the master channel. table 127 . i2c0msta mmr bit descriptions bit access type description 7 r/w master transmit fifo f lush. set by user to flush the master tx fifo. cleared automatically after the master tx fifo is flushed. this bit also flushes the slave receive fifo. 6 r master b usy. set automatically if the master is busy. cleared automatically. 5 r arbitration l os s. set in multimaster mode if another master has the bus. cleared when the bus becomes available. 4 r no ack. set automatically if there is no acknowledge of the address by the slave device. cleared automatically by reading the i2c0msta register. 3 r mas ter r eceive irq. set after receiving data. cleared automatically by reading the i2c0mrx register. 2 r master t ransmit irq. set at the end of a transmission. cleared automatically by writing to the i2c0mtx register. 1 r master t ransmit fifo u nderflow. set automatically if the master transmit fifo is underflowing. cleared automatically by writing to the i2c0mtx register. 0 r master tx fifo not f ull. set automatically if the slave transmit fifo is not full. cleared automati - cally by writing twice to the i2c 0stx register. table 128 . i2cxssta registers name address default value access i2c0ssta 0xffff0804 0x01 r i2c1ssta 0xffff0904 0x01 r i2cxssta are status registers for the slave channel.
data sheet aduc7019/20/21/22/24/25/26/27/28/29 rev. f | page 77 of 104 table 129 . i2c0s sta mmr bit descriptions bit value description 31:15 reserved. these bits should be written as 0. 14 start d ecode b it. set by hardware if the device receives a valid start plus matching address. cleared by an i 2 c stop condition or an i 2 c general call r eset. 13 repeated s tart d ecode b it. set by hardware if the device receives a valid repeated start and matching address. cleared by an i 2 c stop condi - tion, a read of the i2cssta register, or an i 2 c general call reset. 12:11 id d ecode b its. 00 receive d address matched id register 0. 01 received address matched id register 1. 10 received address matched id register 2. 11 received address matched id register 3. 10 stop a fter s tart and m atching a ddress i nterrupt. set by hardware if the slave devic e receives an i 2 c stop condition after a previous i 2 c start condition and matching address. cleared by a read of the i2c0ssta register. 9:8 general c all id. 00 no g eneral c all. 01 general c all reset and p rogram a ddress. 10 gener al call p rogram a ddr ess. 11 general c all m atching a lternative id. 7 general c all i nterrupt. s et if the slave device receives a general call of any type. cleared by setting bit 8 of the i2cxcfg register. if it is a general call reset, all registers are at their default val ues. if it is a hardware general call, the rx fifo holds the second byte of the general call. this is similar to the i2c0alt register (unless it is a general call to reprogram the device address). for more details, see the i 2 c bus specification, version 2. 1, jan uary 2000. 6 slave b usy. set automatically if the slave is busy. cleared automatically. 5 no ack. set if master asking for data and no data is available. cleared automatically by reading the i2c0ssta register. 4 slave r eceive fifo o verflow. set automatically if the slave receive fifo is overflowing. cleared automatically by reading the i2c0ssta register. 3 slave r eceive irq. set after receiving data. cleared automatically by reading the i2c0srx register or flushing the fifo. 2 slave t ransmit irq. set at the end of a trans - mission. cleared automatically by writing to the i2c0stx register. 1 slave t ransmit fifo u nderflow. set automatically if the slave transmit fifo is underflowing. cleared automatically by writing to the i2c0ssta register. 0 slave t ransmit fifo n ot f ull. set automatically if the slave transmit fifo is not full. cleared auto - matically by writing twice to the i2c0stx register. table 130 . i2cxsrx registers name address default value access i2c0srx 0 xffff0808 0x00 r i2c1srx 0xffff0908 0x00 r i2cxsrx are receive registers for the slave channel. table 131 . i2cxstx registers name address default value access i2c0stx 0xffff080c 0x00 w i2c1stx 0xffff090c 0x00 w i2cxstx are tra nsmit registers for the slave channel. table 132 . i2cxmrx registers name address default value access i2c0mrx 0xffff0810 0x00 r i2c1mrx 0xffff0910 0x00 r i2cxmrx are receive registers for the master channel. table 133 . i2cxmtx registers name address default value access i2c0mtx 0xffff0814 0x00 w i2c1mtx 0xffff0914 0x00 w i2cxmtx are transmit registers for the master channel. table 134 . i2cxcnt registers name address default val ue access i2c0cnt 0xffff0818 0x00 r/w i2c1cnt 0xffff0918 0x00 r/w i2cxcnt are 3 - bit, master receive, data count registers. if a master read transfer sequence is initiated, the i2cxcnt registers denote the number of bytes (?1) to be read from the slave d evice. by default, this counter is 0, which corresponds to the one byte expected. table 135 . i2cxadr registers name address default value access i2c0adr 0xffff081c 0x00 r/w i2c1adr 0xffff091c 0x00 r/w i2cxadr are master address byte registers. the i2cxadr value is the device address that the master wants to commun - icate with. it automatically transmits at the start of a master transfer sequence if there is no valid data in the i2cxmtx register when the master enable bit is set. t able 136 . i2cxbyte registers name address default value access i2c0byte 0xffff0824 0x00 r/w i2c1byte 0xffff0924 0x00 r/w i2cxbyte are broadcast byte registers. data written to these register s do es not go through the txfifo. this data is transmitted at the start of a transfer sequence before the address. after the byte is transmitted and acknowledged, the i 2 c expects another byte written in i2cxbyte or an address written to the address register.
aduc7019/20/21/22/24/25/26/27/28/29 data sheet rev. f | page 78 of 104 table 137 . i2cxalt registers name address default value access i2c0alt 0xffff0828 0x00 r/w i2c1alt 0xffff0928 0x00 r/w i2cxalt are hardware general call id registers used in slave mode. table 1 38 . i2cxcfg registers name address default va lue access i2c0cfg 0xffff082c 0x00 r/w i2c1cfg 0xffff092c 0x00 r/w i2cxcfg are configuration registers. table 139 . i2c0cfg mmr bit descriptions bit description 31:5 reserved. these bits should be written by the user as 0. 14 e nable s top i nterrupt. set by the user to generate an interrupt upon receiving a stop condition and after receiving a valid start condition and matching address. cleared by the user to disable the generation of an interrupt upon receiving a stop condition . 13 reserved. 12 reserved. 11 enable s tr etch scl (h olds scl l ow). set by the user to stretch the scl line. cleared by the user to disable stretching of the scl line. 10 reserved. 9 slave tx fifo r equest i nterrupt e nable. set by the user to disable the slave tx fifo request interrupt. cleared by the user to generate an interrupt request just after the negative edge of the clock for the r/w bit. this allows the user to input data into the s lave tx fifo if it is empty. at 400 ksps and the core clock runnin g at 41.78 mhz, the user has 45 clock cycles to take appropriate action, taking interrupt latency into account. 8 general c all s tatus b it c lear. set by the user to clear the general call status bits. cleared automatically by hardware after the general cal l status bits are cleared. 7 master s erial c lock e nable b it. set by user to enable generation of the serial clock in master mode. cleared by user to disable serial clock in master mode. 6 loop b ack e nable b it. set by user to internally connect the transit ion to the reception to test user software. cleared by user to operate in normal mode. 5 start backoff d isable b it. set by user in multimaster mode. if losing arbitration, the master immediately tries to retransmit. cleared by user to enable start back off . after losing arbitration, the master waits before trying to retransmit. 4 hardware general c all e nable. when this bit and bit 3 are set and have received a general call (address 0x00) and a data byte, the device checks the contents of i2c0alt against th e receive register. if the contents match, the device has received a hardware general call. this is used if a device needs urgent attention from a master device without knowing which master it needs to turn to. this is a to whom it may concern call. the aduc7019/20/21/22/24/25/26/27/28 /29 watch for these addresses. the device that requires attention embeds its own address into the message. all masters listen , and the one that can handle the device contacts its slave and acts appropriately. the lsb of the i2c0alt register should always be written to 1, as indicated in t he i 2 c - bus specification , january 2000, from nxp . 3 general c all e nable b it. this bit is s et by the user to enable the slave device to acknowledge (ack) an i 2 c general call, address 0x00 (wr ite). the device then recognizes a data bit. if it receives a 0x06 (reset and write programmable part of slave address by har dware) as the data byte, the i 2 c interface resets as as indicated in the i 2 c - bus specification, january 2000, from nxp. this comman d can be used to reset an entire i 2 c system. the general call interrupt status bit sets on any general call. the user must take corrective action by setting up the i 2 c interface after a reset. if it receives a 0x04 (write programmable part of slave address by hardware) as the data byte, the general call interrupt status bit sets on any general call. the user must take corrective action by reprogramming the device address. 2 reserved. 1 master e nable b it. set by user to enable the master i 2 c channel. clear ed by user to disable the master i 2 c channel. 0 slave e nable b it. set by user to enable the slave i 2 c channel. a slave transfer sequence is monitored for the device address in i2c0id0, i2c0id1, i2c0id2, and i2c0id3. at 400 ksps, the core clock should run at 41.78 mhz because the interrupt latency could be up to 45 clock cycles alone. after the i 2 c read bit, the user has 0.5 of an i 2 c clock cycle to load the tx fifo. at 400 ksps, this is 1.26 s , the interrupt latency.
data sheet aduc7019/20/21/22/24/25/26/27/28/29 rev. f | page 79 of 104 table 140 . i2cxdiv registers name address default value access i2c0div 0xffff0830 0x1f1f r/w i2c1div 0xffff0930 0x1f1f r/w i2cxdiv are the clock divider registers. table 141 . i2cxidx registers name address default value access i2c0id0 0x ffff0838 0x00 r/w i2c0id1 0xffff083c 0x00 r/w i2c0id2 0xffff0840 0x00 r/w i2c0id3 0xffff0844 0x00 r/w i2c1id0 0xffff0938 0x00 r/w i2c1id1 0xffff093c 0x00 r/w i2c1id2 0xffff0940 0x00 r/w i2c1id3 0xffff0944 0x00 r/w i2cxid0, i2cxid1, i2cxid2, and i2c xid3 are slave address device id registers of i2cx. table 142 . i2cxccnt registers name address default value access i2c0ccnt 0xffff0848 0x01 r/w i2c1ccnt 0xffff0948 0x01 r/w i2cxccnt are 8 - bit start/stop generation counters. the y hold off sda low for start and stop conditions. table 143 . i2cxfsta registers name address default value access i2c0fsta 0xffff084c 0x0000 r/w i2c1fsta 0xffff094c 0x0000 r/w i2cxfsta are fifo status registers. table 144 . i2c0fsta mmr bit descriptions bit access type value description 15:10 reserved. 9 r/w master t ransmit fifo f lush. set by the user to flush the master tx fifo. cleared automatically when the master tx fifo is flushed. this bit also flushes the slave receive fifo. 8 r/w slave t ransmit fifo fl ush. set by the user to flush the slave tx fifo. cleared automatically after the slave tx fifo is flushed. 7:6 r master rx fifo s tatus b its. 00 fifo empty . 01 byte w ritten to fifo. 1 0 one b yte in fifo. 11 fifo f ull. 5:4 r master tx fifo s tatus b its. 00 fifo e mpty. 01 byte w ritten to fifo. 10 one b yte in fifo. 11 fifo f ull. 3:2 r slave rx fifo s tatus b its. 00 fifo e mpty. 01 byte w ritten to fifo. 10 one b yte in fifo. 11 fifo f ull. 1:0 r slave tx fifo s tatus b its. 00 fifo e mpty. 01 byte w ritten to fifo. 10 one b yte in fifo. 11 fifo f ull.
aduc7019/20/21/22/24/2 5/26/27/28/29 data sheet rev. f | page 80 of 104 programmable logic array (pla) every aduc7019/20/21/22/24/25/26/27/28/29 integrates a fully programmable logic array (pla) that consists of two independent but interconnected pla blocks. each block consists of eight pla elements, giving each part a total of 16 pla elements. each pla element contains a two-input lookup table that can be configured to generate any logic output function based on two inputs and a flip-flop. this is represented in figure 76. 04955-033 4 2 0 1 3 a b lookup table figure 76. pla element in total, 30 gpio pins are available on each aduc7019/20/21/ 22/24/25/26/27/28/29 for the pla. these include 16 input pins and 14 output pins, which msut be configured in the gpxcon register as pla pins before using the pla. note that the comparator output is also included as one of the 16 input pins. the pla is configured via a set of user mmrs. the output(s) of the pla can be routed to the internal interrupt system, to the conv start signal of the adc, to an mmr, or to any of the 16 pla output pins. the two blocks can be interconnected as follows: ? output of element 15 (block 1) can be fed back to input 0 of mux 0 of element 0 (block 0). ? output of element 7 (block 0) can be fed back to the input 0 of mux 0 of element 8 (block 1). table 145. element input/output pla block 0 pla block 1 element input output element input output 0 p1.0 p1.7 8 p3.0 p4.0 1 p1.1 p0.4 9 p3.1 p4.1 2 p1.2 p0.5 10 p3.2 p4.2 3 p1.3 p0.6 11 p3.3 p4.3 4 p1.4 p0.7 12 p3.4 p4.4 5 p1.5 p2.0 13 p3.5 p4.5 6 p1.6 p2.1 14 p3.6 p4.6 7 p0.0 p2.2 15 p3.7 p4.7 pla mmrs interface the pla peripheral interface consists of the 22 mmrs described in this section. table 146. plaelmx registers name address default value access plaelm0 0xffff0b00 0x0000 r/w plaelm1 0xffff0b04 0x0000 r/w plaelm2 0xffff0b08 0x0000 r/w plaelm3 0xffff0b0c 0x0000 r/w plaelm4 0xffff0b10 0x0000 r/w plaelm5 0xffff0b14 0x0000 r/w plaelm6 0xffff0b18 0x0000 r/w plaelm7 0xffff0b1c 0x0000 r/w plaelm8 0xffff0b20 0x0000 r/w plaelm9 0xffff0b24 0x0000 r/w plaelm10 0xffff0b28 0x0000 r/w plaelm11 0xffff0b2c 0x0000 r/w plaelm12 0xffff0b30 0x0000 r/w plaelm13 0xffff0b34 0x0000 r/w plaelm14 0xffff0b38 0x0000 r/w plaelm15 0xffff0b3c 0x0000 r/w plaelmx are element 0 to element 15 control registers. they configure the input and output mux of each element, select the function in the lookup table, and bypass/use the flip-flop. see table 147 and table 152. table 147. plaelmx mmr bit descriptions bit value description 31:11 reserved. 10:9 mux 0 control (see table 152). 8:7 mux 1 control (see table 152). 6 mux 2 control. set by user to select the output of mux 0. cleared by user to select the bit value from pladin. 5 mux 3 control. set by user to select the input pin of the particular element. cleared by user to select the output of mux 1. 4:1 lookup table control. 0000 0. 0001 nor. 0010 b and not a. 0011 not a. 0100 a and not b. 0101 not b. 0110 exor. 0111 nand. 1000 and. 1001 exnor. 1010 b. 1011 not a or b. 1100 a. 1101 a or not b. 1110 or. 1111 1. 0 mux 4 control. set by user to bypass the flip- flop. cleared by user to select the flip-flop (cleared by default).
data sheet aduc7019/20/21/22/24/25/26/27/28/29 rev. f | page 81 of 104 table 148 . placlk register name address default value access placlk 0xffff0b40 0x00 r/w placlk is the clock selection for the flip - flops of block 0 and block 1. note that the ma ximum frequency when using the gpio pins as the clock input for the pla blocks is 44 mhz. table 149 . placlk mmr bit descriptions bit value description 7 reserved. 6:4 block 1 c lock s ource s election. 000 gpio c lock on p0.5. 001 gpio c lock on p0.0. 010 gpio c lock on p 0.7. 011 hclk. 100 oclk (32.768 khz) external crystal only . 101 timer1 o verflow. other reserved. 3 reserved. 2:0 block 0 c lock s ource s election. 000 gpio c lock on p0.5. 001 gpio c lock on p0.0. 010 gpio c lock on p0.7. 011 hclk. 100 ocl k (32.768 khz) external crystal only . 101 timer1 o verflow. other reserved. table 150 . plairq register name address default value access plairq 0xffff0b44 0x00000000 r/w plairq enables irq0 and/or irq1 and selects the source of the irq. table 151 . plairq mmr bit descriptions bit value description 15:13 reserved. 12 pla irq1 e nable b it. set by user to enable irq1 output from pla . cleared by user to disable irq1 output from pla. 11:8 pla irq1 s our ce. 0000 pla element 0. 0001 pla element 1. 1111 pla element 15. 7:5 reserved. 4 pla irq0 e nable b it . set by user to enable irq0 output from pla . cleared by user to disable irq0 output from pla. 3:0 pla irq0 s ource. 0000 pla element 0. 000 1 pla element 1. 1111 pla element 15. table 152 . feedback configuration bit value plaelm0 plaelm1 to plaelm7 plaelm8 plaelm9 to plaelm15 10:9 00 element 15 element 0 element 7 element 8 01 element 2 element 2 element 10 elem ent 10 10 element 4 element 4 element 12 element 12 11 element 6 element 6 element 14 element 14 8:7 00 element 1 element 1 element 9 element 9 01 element 3 element 3 element 11 element 11 10 element 5 element 5 element 13 element 13 11 element 7 element 7 element 15 element 15
aduc7019/20/21/22/24/25/26/27/28/29 data sheet rev. f | page 82 of 104 table 153 . plaadc register name address default value access plaadc 0xffff0b48 0x00000000 r/w p laadc is the pla source for the adc start conversion signal. table 154 . plaadc mmr bit descriptions bit value description 31:5 reserved. 4 adc s tart c onversion e nable b it. set by user to enable adc start conversion from pla . cleared by user to disable adc start conversion from pla. 3:0 adc s tart c onversion s ource. 0000 pla element 0. 0001 pla element 1. 1111 pla element 15. table 155 . pladin register name address default value access pladin 0xffff0b4c 0x00000000 r/w pladin is a data input mmr for pla. table 156 . p ladin mmr bit descriptions bit description 31:16 reserved. 15:0 input b it to element 15 to element 0. table 157 . pladout register name address default value access pladout 0xffff0b50 0x00000000 r pladout is a data output mmr f or pla. this register is always updated. table 158 . pladout mmr bit descriptions bit description 31:16 reserved. 15:0 output b it from element 15 to element 0. table 159 . plalck register name address defau lt value access plalck 0xffff0b54 0x00 w plalck is a pla lock option. bit 0 is written only once. when set, it does not allow modifying any of the pla mmrs, except pladin. a pla tool is provided in the development system to easily configure the pla.
data sheet aduc7019/20/21/22/24/25/26/27/28/29 rev. f | page 83 of 104 pr ocessor reference pe ripherals interrupt system there are 23 interrupt sources on the aduc7019/20/21/22/ 24/25/26/27/28 /29 that are controlled by the interrupt controller. most interrupts are generated from the on - chip peripherals, such as adc and uart. fou r additional interrupt sources are generated from external interrupt request pins, irq0, irq1, irq2, and irq3. the arm7tdmi cpu core only recognizes interrupts as one of two types : a normal interrupt request irq or a fast interrupt request fiq. all the int errupts can be masked separately. the control and configuration of the interrupt system are managed through nine interrupt - related registers, four dedicated to irq, and four dedicated to fiq. an additional mmr is used to select the programmed interrupt sou rce. the bits in each irq and fiq register (except for bit 23) represent the same interrupt source as described in table 160. table 160 . irq/fiq mmrs bit description bit description 0 all i nterrupts o red (fiq only) 1 swi 2 timer0 3 timer1 4 wake -u p t imer (timer2) 5 watchdog t imer (timer3) 6 fl ash c ontrol 7 adc c hannel 8 pll l ock 9 i2c0 s lave 10 i2c0 m aster 11 i2c1 m aster 12 spi s lave 13 spi m aster 14 uart 15 external irq0 16 comparator 17 psm 18 external irq1 19 pla irq0 20 pla irq1 21 external irq2 22 external irq3 23 pwm t rip (irq only)/pwm s ync (fiq only) irq the interrupt request (irq) is the exception signal to enter the irq mode of the processor. it is used to service ge neral - purpose interrupt handling of internal and external events. the four 32 - bit r egisters dedicated to irq are irqsta, irqsig, irqen, and irqclr. table 161 . irqsta register name address default value access irqsta 0xffff0000 0x0 0000000 r irqsta ( read - only register) provides the current - enabled irq source status. when set to 1, that source should generate an active irq request to the arm7tdmi core. there is no priority encoder or interrupt vector generation. this function is impl emented in software in a common interrupt handler routine. all 32 bits are logically ored to create the irq signal to the arm7tdmi core. table 162 . irqsig register name address default value access irqsig 0xffff0004 0x00xxx000 1 r 1 x indicates an undefined value. irqsig reflects the status of the different irq sources. if a periph - eral generates an irq signal, the corresponding bit in the irqsig is set; otherwise, it is cleared. the irqsig bits are cleared when the interrupt in t he particular peripheral is cleared. all irq sources can be masked i n the irqen mmr. irqsig is read only. table 163 . irqen register name address default value access irqen 0xffff0008 0x00000000 r/w irqen provides the value of the current enable mask. when each bit is set to 1, the source request is enabled to create an irq exception. when each bit is set to 0, the source request is disabled or masked, which does not create an irq exception. note that t o clear an already enabled in terrupt source, the user must set the appropriate bit in the irqclr register. clearing an interrupts irqen bit does not disable th e interrupt. table 164 . irqclr register name address default value access irqclr 0xffff000c 0x00000 000 w irqclr (write - only register) clears the irqen register in order to mask an interrupt source. each bit set to 1 clears the corresponding bit in the irqen register without affecting the remaining bits. the pair of registers, irqen and irqclr, independ ently manipulates the enable mask without requiring an atomic read - modify - write.
aduc7019/20/21/22/24/25/26/2 7/28/29 data sheet rev. f | page 84 of 104 fiq the fast interrupt request (fiq) is the exception signal to enter the fiq mode of the processor. it is provided to service data transfer or communication channel tasks wi th low latency. the fiq interface is identical to the irq interface providing the second - level interrupt (highest priority). four 32 - bit registers are dedicated to fiq: fiqsig, fiqen, fiqclr, and fiqsta. table 165 . fiqsta register n ame address default value access fiqsta 0xffff0100 0x00000000 r table 166 . fiqsig register name address default value access fiqsig 0xffff0104 0x00xxx000 1 r 1 x indicates an undefined value. table 167 . fiqen register name address default value access fiqen 0xffff0108 0x00000000 r/w table 168 . fiqclr register name address default value access fiqclr 0xffff010c 0x00000000 w bit 31 to bi t 1 of fiqsta are logically or d to creat e the fiq signal to the core and to bit 0 of both the fiq and irq registers (fiq source). the logic for fiqen and irqen does not allow an interrupt source to be enabled in both irq and fiq masks. a bit set to 1 in fiqen does, as a side effect, clear the sa me bit in irqen. also, a bit set to 1 in irqen does, as a side effect, clear the same bit in fiqen. an interrupt source can be disabled in both the irqen and fiqen masks. note that t o clear an already enabled fiq source, the user must set the appropriate b it in the fiqclr register. clearing an interrupts fiqen bit does not disable th e interrupt. programmed interrupts because the programmed interrupts are nonmaskable, they are controlled by another register, swicfg, which simultaneously writes into the irqs ta and irqsig registers and/or the fiqsta and fiqsig registers. the 32 - bit swicfg register is dedicated to software interrupts(see table 170). this mmr allows the control of a programmed source interrupt. table 169 . swicfg register name address default value access swicfg 0xffff0010 0x00000000 w table 170 . swicfg mmr bit descriptions bit description 31:3 reserved. 2 programmed i nterrupt (fiq). setting/ c learing this bit correspon ds with setting/clearing bit 1 of fiqsta and fiqsig. 1 programmed i nterrupt (irq). setting/ c learing this bit corresponds with setting/clearing bit 1 of irqsta and irqsig. 0 reserved. note that any interrupt signal must be active for at least the equiv alent of the interrupt latency time, which is detected by the interrupt controller and by the user in the irqsta/fiqsta register. timers the aduc7019/20/21/22/24/25/26/27/28 /29 have four general - purpose timer/counte rs. ? timer0 ? timer1 ? timer2 or w ake - u p t imer ? timer3 or w atchdog t imer these four timers in their normal mode of operation can be either free running or periodic. in free - running mode, the counter decreases from the maximum value until zero scale and starts again at the minimum value. (it also increa ses from the minimum value until full scale and starts again at the maximum value.) in periodic mode, the counter decrements/increments from the value in the load register (txld mmr) until zero/full scale and starts again at the value stored in the load re gister. the timer interval is calculated as follows: if the timer is set to count down then ( ) = if the timer is set to count up , then ( ) ? = the value of a counter can be read at any time by accessing its value register (txval). note that when a timer is being clocked from a clock other than core clock, an incorrect value may be read (due to an asynchronous clock system). in this configur - ation, txval should always be read twice. if the two readings are different, it shou ld be read a third time to get the correct value. timers are started by writing in the control register of the corresponding timer (txcon).
data sheet aduc7019/20/21/22/24/25/26/27/28/29 rev. f | page 85 of 104 in normal mode, an irq is generated each time the value of the counter reaches zero when counting down. it is also generated each time the counter value reaches full scale when counting up. an irq can be cleared by writing any value to clear the register of that particular timer (txclri). when using an asynchronous clock - to - clock timer, the interrupt in the timer block may take more time to clear than the time it takes for the code in the interrupt routine to execute. ensure that the interrupt signal is cleared before leaving the interrupt service routine. this can be done by checking the irqsta mmr. hour:minute:secon d:1/128 format to use the timer in hour:minute:second:hundredths format, select the 32,768 khz clock and prescaler of 256. the hun - dredths field does not represent milliseconds but 1/128 of a second (256/32,768). the bits representing the hour, minute, a nd second are not consecutive in the register. this arrangement applies to txld and txval when using the hour:minute:second:hundredths format as set in txcon[5:4]. see table 171 for additional details. table 171 . hour:minnute:second:hundredths format bit value description 31:24 0 to 23 or 0 to 255 hours 23:22 0 reserved 21:16 0 to 59 minutes 15:14 0 reserved 13.8 0 to 59 seconds 7 0 reserved 6:0 0 to 127 1/128 second timer0 (rtos timer) timer0 is a gener al - purpose, 16 - bit timer (count down) with a programmable prescaler (see figure 77 ). the prescaler source is the core clock frequency (hclk) and can be scaled by factors of 1, 16, or 256. timer0 can be used to start ad c conversions as shown in the block diagram in figure 77. 04955-034 16-bit load timer0 value 16-bit down counter prescaler /1, 16 or 256 hclk timer0 irq adc conversion figure 77 . timer0 block diagram the timer0 interface consists of four mmrs: t0ld, t0val, t0con, and t0clri. table 172 . t0ld register name address default value access t0ld 0xffff0300 0x0000 r/w t0ld is a 16 - bit load register. table 173 . t0val register name address default value access t0val 0xffff0304 0xffff r t0val is a 16 - bit read - only regi ster representing the current state of the counter. table 174 . t0con register name address default value access t0con 0xffff0308 0x0000 r/w t0con is the configuration mmr described in table 175. tabl e 175 . t0con mmr bit descriptions bit value description 15 :8 reserved. 7 timer0 e nable b it. set by user to enable timer0. cleared by user to disable timer0 by default. 6 timer0 m ode. set by user to operate in periodic mode. cl eared by user to operate in free - running mode. default mode. 5:4 reserved. 3:2 prescale. 00 core c lock/1. default value. 01 core clock/16. 10 core clock/256. 11 undefined. equivalent to 00. 1:0 reserved. table 176 . t 0clri register name address default value access t0clri 0xffff030c 0xff w t0clri is an 8 - bit register. writing any value to this register clears the interrupt.
aduc7019/20/21/22/24/25/26/2 7/28/29 data sheet rev. f | page 86 of 104 timer1 (general - purpose timer) timer1 is a general - purpose, 32 - bit timer (count down or count up) with a programmable prescaler. the source can be the 32 khz external crystal, the core clock frequency, or an external gpio ( p1.0 or p0.6 ). the maximum frequency of the clock input is 44 mhz). this source can be scaled by a factor of 1, 16, 256, or 32 ,768. the counter can be formatted as a standard 32 - bit value or as hours: minutes: seconds: hundredths. timer1 has a capture register (t1cap) that can be triggered by a selected irq source initial assertion. this feature can be used to determine the asse rtion of an event more accurately than the precision allowed by the rtos timer when the irq is serviced. timer1 can be used to start adc conversions as shown in the block diagram in figure 78. 04955-035 32khz oscillator hclk p0.6 p1.0 irq[31:0] prescaler /1, 16, 256 or 32,768 32-bit up/down counter 32-bit load timer1 value capture timer1 irq adc conversion figure 78 . timer1 block diagram the timer1 interface consists of five mmrs: t1ld, t1val, t1con, t1clri, and t1cap. table 177 . t1ld register name address default value access t1ld 0xffff0320 0x00000000 r/w t1ld is a 32 - bit load regis ter. table 178 . t1val register name address default value access t1val 0xffff0324 0xffffffff r t1val is a 32 - bit read - only register that represents the current state of the counter. table 179 . t1con regist er name address default value access t1con 0xffff0328 0x0000 r/w t1con is the configuration mmr described in table 180.
data sheet aduc7019/20/21/22/24/25/26/27/28/29 rev. f | page 87 of 104 table 180 . t1con mmr bit descriptions bit value description 31:18 reserved. 17 event s elect b it. set by user to enable time capture of an event. cleared by user to disable time capture of an event. 16:12 event s elect r ange, 0 to 31. these events are as described in table 160 . all events are offs et by two ; that is, event 2 in table 160 becomes event 0 for the purposes of timer1. 11:9 clock s elect. 000 core c lock (hclk). 001 external 32.768 khz c rystal. 010 p1.0 r ising e dge t riggered. 011 p0.6 r ising e dge t r iggered. 8 count u p. set by user for timer1 to count up. cleared by user for timer1 to count down by default. 7 timer1 e nable b it. set by user to enable timer1. cleared by user to disable timer1 by default. 6 timer1 m ode. set by user to operate in pe riodic mode. cleared by user to operate in free - running mode. default mode. 5:4 format. 00 binary. 01 reserved. 10 hr: m in: s ec: h undredths (23 hours to 0 hour). 11 hr: m in: s ec: h undredths (255 hours to 0 hour). 3:0 prescale. 0000 source clo ck/1. 0100 source clock/16. 1000 source clock/256. 1111 source clock/32,768. table 181 . t1clri register name address default value access t1clri 0xffff032c 0xff w t1clri is an 8 - bit register. writing any value to this regi ster clears the timer1 interrupt. table 182 . t1cap register name address default value access t1cap 0xffff0330 0x00000000 r /w t1cap is a 32 - bit register. it holds the value contained in t1val when a particular event occurs. this event must be selected in t1con. timer2 (wake - up timer) timer2 i s a 32 - bit wake - up timer (count down or count up) with a programmable prescaler. the source can be the 32 khz external crystal, the core clock frequency, or the internal 32 khz oscillator. th e clock source can be scaled by a factor of 1, 16, 256, or 32,768. the wake - up timer continues to run when the core clock is disabled. the counter can be formatte d as plain 32 - bit value or as hours: m inutes: s econds: h undredths. 04955-036 internal oscillator external crystal hclk prescaler /1, 16, 256 or 32,768 32-bit up/down counter 32-bit load timer2 value timer2 irq figure 79 . timer2 block diagram the timer2 interface consists of four mmrs: t2ld, t2val, t2con, and t2clri. table 183 . t2ld register name address default value access t2ld 0xffff0340 0x00000000 r/w t2ld is a 32 - bit register loa d register. table 184 . t2val register name address default value access t2val 0xffff0344 0xffffffff r t2val is a 32 - bit read - only register that represents the current state of the counter. table 185 . t2con register name address default value access t2con 0xffff0348 0x0000 r/w t2con is the configuration mmr described in table 186.
aduc7019/20/21/22/24/25/26/2 7/28/29 data sheet rev. f | page 88 of 104 table 186 . t2con mmr bit descriptions bit value description 31:11 rese rved. 10:9 clock s ource. 00 external c rystal. 01 external c rystal. 10 internal o scillator. 11 core c lock (41 mhz/2 cd ). 8 count u p. set by user for timer2 to count up. cleared by user for timer2 to count down by default. 7 timer2 e nable b it. s et by user to enable timer2. cleared by user to disable timer2 by default. 6 timer2 m ode. set by user to operate in periodic mode. cleared by user to operate in free - running mode. default mode. 5:4 format. 00 binary. 01 reserved. 10 hr: m in: s ec: hundredths (23 hours to 0 hour). 11 hr: m in: s ec: hundredths (255 hours to 0 hour). 3:0 prescale. 0000 source clock/1 by d efault. 0100 source clock/16. 1000 source clock/256 e xpected for format 2 and format 3. 1111 source c lock/32,768. table 187 . t2clri register name address default value access t2clri 0xffff034c 0xff w t2clri is an 8 - bit register. writing any value to this register clears the timer2 interrupt. timer3 (watchdog time r ) ti mer3 has two modes of operatio n: normal mode and watchdog mode. the watchdog timer is used to recover from an illegal software state. once enabled, it requires periodic servicing to prevent it from forcing a processor reset. normal mode timer3 in normal mode is identical to timer0, ex cept for the clock source and the count - up functionality. the clock source is 32 khz from the pll and can be scaled by a factor of 1, 16, or 256 (see figure 80). 04955-037 32.768khz prescaler /1, 16 or 256 16-bit up/down counter 16-bit load timer3 value watchdog reset timer3 irq figure 80 . timer3 block diagram wa tchdog mode watchdog mode is entered by setting bit 5 in the t3con mmr. timer3 decreases from the value present in the t3ld register to 0. t3ld is used as the timeout. the maximum timeout can be 512 sec , using the prescaler/ 256, and full scale in t3ld. ti mer3 is clocked by the internal 32 khz crystal when operating in watchdog mode. note that to enter watchdog mode success - fully, bit 5 in the t3con mmr must be set after writing to the t3ld mmr. if the timer reaches 0, a reset or an interrupt occurs, depen ding on bit 1 in the t3con register. to avoid reset or interrupt, any value must be written to t3clri before the expiration period. this reloads the counter with t3ld and begins a new timeout period. when watchdog mode is entered , t3ld and t3con are write - protected. these two registers cannot be modified until a reset clears the watchdog enable bit, which causes timer3 to exit watchdog mode. the timer3 interface consists of four mmrs: t3ld, t3val, t3con, and t3clri. table 188 . t3ld r egister name address default value access t3ld 0xffff0360 0x0000 r/w t3ld is a 16 - bit register load register. table 189 . t3val register name address default value access t3val 0xffff0364 0xffff r t3val is a 16 - bit read - only re gister that represents the current state of the counter. table 190 . t3con register name address default value access t3con 0xffff0368 0x0000 r/w t3con is the configuration mmr described in table 191.
data sheet aduc7019/20/21/22/24/2 5/26/27/28/29 rev. f | page 89 of 104 table 191. t3con mmr bit descriptions bit value description 15:9 reserved. 8 count up. set by user for timer3 to count up. cleared by user for time r3 to count down by default. 7 timer3 enable bit. set by user to enable timer3. cleared by user to disable timer3 by default. 6 timer3 mode. set by user to operate in periodic mode. cleared by user to operate in free-running mode. default mode. 5 watchdog mode enable bit. set by user to enable watchdog mode. cleared by user to disable watchdog mode by default. 4 secure clear bit. set by user to use the secure clear option. cleared by user to disable the secure clear option by default. 3:2 prescale. 00 source clock/1 by default. 01 source clock/16. 10 source clock/256. 11 undefined. equivalent to 00. 1 watchdog irq option bit. set by user to produce an irq instead of a reset when the watchdog reaches 0. cleared by user to disable the irq option. 0 reserved. table 192. t3clri register name address default value access t3clri 0xffff036c 0x00 w t3clri is an 8-bit register. writing any value to this register on successive occassions clears the timer3 interrupt in normal mode or resets a new timeout period in watchdog mode . note that the user must perform successive writes to this register to ensure resetting the timeout period. secure clear bit (watchdog mode only) the secure clear bit is provided for a higher level of protection. when set, a specific sequential value must be written to t3clri to avoid a watchdog reset. the value is a sequence generated by the 8-bit linear feedback shif t register (lfsr) polynomial = x8 + x6 + x5 + x + 1, as shown in figure 81. 04955-038 c lock qd 4 qd 5 qd 3 qd 7 qd 6 qd 2 qd 1 qd 0 figure 81. 8-bit lfsr the initial value or seed is written to t3clri before entering watchdog mode. after entering watchdog mode, a write to t3clri must match this expected value. if it matches, the lfsr is advanced to the next state when the counter reload occurs. if it fails to match the expected state, a reset is immediately generated, even if the count has not yet expired. the value 0x00 should not be used as an initial seed due to the properties of the polynomi al. the value 0x00 is always guaranteed to force an immediate reset. the value of the lfsr cannot be read; it must be tracked/generated in software. the following is an example of a sequence: 1. enter initial seed, 0xaa, in t3clri before starting timer3 in watchdog mode. 2. enter 0xaa in t3clri; timer3 is reloaded. 3. enter 0x37 in t3clri; timer3 is reloaded. 4. enter 0x6e in t3clri; timer3 is reloaded. 5. enter 0x66. 0xdc was expected; the watchdog resets the chip. external memory interfacing the aduc7026 and aduc7027 are the only models in their series that feature an external memory interface. the external memory interface requires a larger number of pins. this is why it is only available on larger pin count packages. the xmcfg mmr must be set to 1 to use the external port. although 32-bit addresses are supported internally, only the lower 16 bits of the address are on external pins. the memory interface can address up to four 128 kb blocks of asynchronous memory (sram or/and eeprom). the pins required for interfacing to an external memory are shown in table 193. table 193. external memory interfacing pins pin function ad[16:1] address/data bus a16 extended addressing for 8-bit memory only ms[3:0] memory select ws write strobe rs read strobe ae address latch enable bhe , ble byte write capability there are four external memory regions available, as described in table 194. associated with each region are the ms[3:0] pins. these signals allow access to the particular region of external memory. the size of each memory region can be 128 kb maxi- mum, 64 k 16 or 128 k 8. to access 128 k with an 8-bit memory, an extra address line (a16) is provided (see the example in figure 82). the four regions are configured independently. table 194. memory regions address start address end contents 0x10000000 0x1000ffff external memory 0 0x20000000 0x2000ffff external memory 1 0x30000000 0x3000ffff external memory 2 0x40000000 0x4000ffff external memory 3 each external memory region can be controlled through three mmrs: xmcfg, xmxcon, and xmxpar.
aduc7019/20/21/22/24/25/26/2 7/28/29 data sheet rev. f | page 90 of 104 04955-039 latch aduc7026/ aduc7027 ad15:ad0 a16 eeprom 64k 16-bit a0:a15 d0:d15 cs ram 128k 8-bit a0:a15 a16 d0:d7 cs we oe we oe ae ms0 ms1 ws rs figure 82 . interfacing to external eeprom/ram table 195 . xmcfg register name address default value access xmcfg 0xfffff000 0x00 r/w xmcfg is set to 1 to enable external memory access. this must be set to 1 before any port pins function as external memory access pins. the port pins must also be individually enabled via the gpxcon mmr. table 196 . xmxcon registers name address default value access xm0con 0xfffff010 0x00 r/w xm1con 0xfffff014 0x00 r/w xm2con 0xfffff018 0x00 r/w xm3con 0xfffff01c 0x00 r/w xmxcon are t he control registers for each memory region. they allow the enabling/disabling of a memory region and control the data bus width of the memory region. table 197 . xmxcon mmr bit descriptions bit description 1 selects data b us w idth. set by user to select a 16 - bit data bus. cleared by user to select an 8 - bit data bus. 0 enables m emory r egion . set by user to enable the memory region. cleared by user to disable the memory region. table 198 . xmxpar registers na me address default value access xm0par 0xfffff020 0x70ff r/w xm1par 0xfffff024 0x70ff r/w xm2par 0xfffff028 0x70ff r/w xm3par 0xfffff02c 0x70ff r/w xmx pa r are registers that define the protocol used for accessing the external memory for each memory r egion. table 199 . xmxpar mmr bit descriptions bit description 15 enable b yte w rite strobe . this bit is used only for two, 8 - bit memory devices sharing the same memory region. set by the user to gate the a0 output with the ws output. this allows byte write capability without using bhe and ble signals. cleared by user to use bhe and ble signals. 14:12 number of w ait s tates on the a ddress l atch e nable strobe . 11 reserved. 10 extra a ddress h old t ime. set by user to disable extra hold time. cleared by user to enable one clock cycle of hold on the address in read and write. 9 extra b us t ransition t ime on r ead. set by user to disable extra bus tra nsition time. cleared by user to enable one extra clock before and after the read strobe ( rs ). 8 extra b us t ransition t ime on w rite. set by user to disable extra bus transition time. cleared by user to enable one extra clock before and a fter the write strobe ( ws ). 7:4 number of w rite w ait s tates. select the number of wait states added to the length of the ws pulse. 0x0 is 1 clock; 0xf is 16 clock cycles (default value). 3:0 number of r ead w ait s tates. select the number of wait states added to the length of the rs pulse. 0x0 is 1 clock; 0xf is 16 clock cycles (default value). figure 83, figure 84, figure 85 , and figure 86 show the timing for a read cycle, a read cycle with address hold and bus turn cycles, a write cycle with address and write hold cycles, and a write cycle with wait sates, respectively.
data sheet aduc7019/20/21/22/24/2 5/26/27/28/29 rev. f | page 91 of 104 04955-040 uclk ad[16:0] address data msx ae rs figure 83. external memory read cycle 04955-041 data address extra address hold time xmxpar (bit 10) bus turn out cycle (bit 9) bus turn out cycle (bit 9) uclk ad[16:0] msx ae rs figure 84. external memory read cycle with address hold and bus turn cycles
aduc7019/20/21/22/24/2 5/26/27/28/29 data sheet rev. f | page 92 of 104 04955-042 data address extra address hold time (bit 10) write hold address and data cycles (bit 8) write hold address and data cycles (bit 8) uclk ad[16:0] msx ae ws figure 85. external memory write cycle with address and write hold cycles 0 4955-043 data address 1 write strobe wait state (bit 7 to bit 4) 1 address wait state (bit 14 to bit 12) uclk ad[16:0] msx ae ws figure 86. external memory write cycle with wait states
data sheet aduc7019/20/21/22/24/25/26/27/28/29 rev. f | page 93 of 104 hardware design cons iderations power supplies the aduc7019/20/21/22/24/25/26/27/28 /29 operational power supply voltage range is 2.7 v to 3.6 v. separate analog an d digital power supply pins (av dd and iov dd , respectively) allow av dd to be kept relatively free of noisy digital signals often present on the system iov dd line. in this mode, the part can also operate with split supplies ; that is, it can use different vol tage levels for each supply. for example, the system can be designed to operate with an iov dd voltage level of 3.3 v wh ereas the av dd level can be at 3 v or vice versa. a typical split supply configuration is shown in figure 8 7 . 04955-044 aduc7026 0.1f analog supply 10f 73 74 av dd 75 dacv dd 8 gnd ref 70 dacgnd 71 agnd 67 refgnd 26 iov dd 54 25 iognd 53 0.1f + ? digital supply 10f + ? figure 87 . external dual supply connections as an alternative to providing two separate power supplies, the user can reduce noise on av dd by placing a small series resistor and/or ferrite bead between av dd and iov dd and then decoupling av dd separately to ground. an example of this configuration is shown in figure 88 . with this configuration, other analog circuitry (such as op amps and voltage reference) can be powered from the av dd supply line as w ell. 04955-045 aduc7026 0.1f bead 1.6? 73 74 av dd 75 dacv dd 8 gnd ref 70 dacgnd 71 agnd 67 refgnd 26 iov dd 54 25 iognd 53 0.1f digital supply 10f 10f + ? figure 88 . external single supply connections note that in both figure 87 and figure 88 , a large value (10 f) reservoir capacitor sits on iov dd , and a separate 10 f capacitor sits on av dd . in addition, local small - value (0.1 f) capacitors are located at each av dd and iov dd pin of the chip. as per standard design practice, be sure to include all of these capacitors and ensure that the smaller capacitors are close t o e a ch av dd pin with trace lengths as short as possible. connect the ground terminal of each of these capacitors directly to the underlying ground plane. finally, note that the analog and digital ground pins on the aduc7019/20/21/22/24/25/26/27/28 /29 must be referenced to the same system ground reference point at all times. io v dd supply sensitivity the iov dd supply is sensitive to high frequency noise because it is the supply source for the internal oscillator and pll circuits. when the internal pll loses lock, the clock source is removed by a gating circuit from the cpu, and the arm7tdmi core stops executing code until the pll regains lock. this feature ensure s that no flash interface timings or arm7tdmi timings are violated. typically, frequency noise gr eater than 50 khz and 50 mv p - p on top of the supply causes the core to stop working. if decoupling values recommended in the power supplies section do not sufficiently dampen all noise sour c es below 50 mv on iov dd , a filter suc h as the one shown in figure 89 is recommended. aduc7026 26 iov dd 54 25 iognd 53 0.1f digital supply 10f + ? 1h 04955-087 figure 89 . recommended iov dd supply filter linear voltage regulator each aduc7019/20/21/22/24/25/26/27/28 /29 requires a single 3.3 v supply, but the cor e logic requires a 2.6 v supply. an on - chip linear regulator generates the 2.6 v from iov dd for the core logic. the lv dd pin is the 2.6 v supply for the core logic. an external compensation capacitor of 0.47 p f must be connected between lv dd and dgnd (as c lose as possible to these pins) to act as a tank of charge as shown in figure 90. 04955-046 aduc7026 0.47 f 27 lv dd 28 dgnd figure 90 . voltage regulator connections the lv dd pin should not be used for any other chip. it is also recommended to use excellent power supply decoupling on iov dd to help improve line regulation performance of the on - chip voltage regulator.
aduc7019/20/21/22/24/2 5/26/27/28/29 data sheet rev. f | page 94 of 104 grounding and board layout recommendations as with all high resolution data converters, special attention must be paid to grounding and pc board layout of the aduc7019/20/21/22/24/25/26/27/ 28/29-based designs to achieve optimum performance from the adcs and dac. although the parts have separate pins for analog and digital ground (agnd and iognd), the user must not tie these to two separate ground planes unless the two ground planes are connected very close to the part. this is illustrated in the simplified example shown in figure 91a. in systems where digital and analog ground planes are connected together somewhere else (at the system power supply, for example), the planes cannot be reconnected near the part because a ground loop results. in these cases, tie all the aduc7019/20/21/ 22/24/25/26/27/28/29 agnd and iognd pins to the analog ground plane, as illustrated in figure 91b. in systems with only one ground plane, ensure that the digital and analog components are physically separated onto separate halves of the board so that digital return currents do not flow near analog circuitry (and vice versa). the aduc7019/20/21/22/24/25/ 26/27/28/29 can then be placed between the digital and analog sections, as illustrated in figure 91c. 04955-047 a. place analog components here place digital components here agnd dgnd b. place analog components here place digital components here agnd dgnd c. place analog components here place digital components here dgnd figure 91. system grounding schemes in all of these scenarios, and in more complicated real-life applications, the user should pay particular attention to the flow of current from the supplies and back to ground. make sure the return paths for all currents are as close as possible to the paths the currents took to reach their destinations. for example, do not power components on the analog side (as seen in figure 91b) with iov dd because that forces return currents from iov dd to flow through agnd. avoid digital currents flowing under analog circuitry, which can occur if a noisy digital chip is placed on the left half of the board (shown in figure 91c). if possible, avoid large discontinuities in the ground plane(s) such as those formed by a long trace on the same layer because they force return signals to travel a longer path. in addition, make all connections to the ground plane directly, with little or no trace separating the pin from its via to ground. when connecting fast logic signals (rise/fall time < 5 ns) to any of the aduc7019/20/21/22/24/25/26/27/28/29 digital inputs, add a series resistor to each relevant line to keep rise and fall times longer than 5 ns at the parts input pins. a value of 100 or 200 is usually sufficient to prevent high speed signals from coupling capacitively into the part and affecting the accuracy of adc conversions. clock oscillator the clock source for the aduc7019/20/21/22/24/25/26/27/28/29 can be generated by the internal pll or by an external clock input. to use the internal pll, connect a 32.768 khz parallel resonant crystal between xclki and xclko, and connect a capacitor from each pin to ground as shown in figure 92. the crystal allows the pll to lock correctly to give a frequency of 41.78 mhz. if no external crys tal is present, the internal oscillator is used to give a typical frequency of 41.78 mhz 3%. 04955-048 aduc7026 to internal pll 12pf 45 xclki 32.768khz 12pf 44 xclko figure 92. external parallel resonant crystal connections to use an external source clock input instead of the pll (see figure 93), bit 1 and bit 0 of pllcon must be modified.the external clock uses p0.7 and xclk. 04955-049 aduc7026 to frequency divider xclko xclki xclk external clock source figure 93. connecting an external clock source using an external clock source, the aduc7019/20/21/22/24/ 25/26/27/28/29-specified operational clock speed range is 50 khz to 44 mhz 1%, which en sures correct operation of the analog peripherals and flash/ee.
data sheet aduc7019/20/21/22/24/2 5/26/27/28/29 rev. f | page 95 of 104 power-on reset operation an internal power-on reset (por) is implemented on the aduc7019/20/21/22/24/25/26/27/28/29. for lv dd below 2.35 v typical, the internal por holds the part in reset. as lv dd rises above 2.35 v, an internal timer times out for, typically, 128 ms before the part is released from reset. the user must ensure that the power supply iov dd reaches a stable 2.7 v minimum level by this time. likewise, on power-down, the internal por holds the part in reset until lv dd drops below 2.35 v. figure 94 illustrates the operation of the internal por in detail. typical system configuration a typical aduc7020 conf iguration is shown in figure 95. it summarizes some of the hardware considerations discussed in the previous sections. the botto m of the csp package has an exposed pad that must be soldered to a metal plate on the board for mechanical reasons. the metal plate of the board can be connected to ground. io v dd 3.3 v 2.6v 2.35v typ 2.35v typ 128ms typ lv dd por mrst 0.12ms typ 04955-050 figure 94. internal power-on reset operation not connected in this example 30 29 28 27 26 25 xclki 24 xclko 23 22 21 1 2 3 gnd ref 4 dac0 5 6 7 8 tms 9 tdi 10 p0.0 40 39 38 adc0 37 av dd 36 agnd 35 v ref 34 33 p1.0 32 p1.1 31 11 12 13 tdo tck 14 iognd 15 iov dd 16 lv dd dgnd 17 18 trst 19 rst 20 dv dd 1k? 10 ? aduc7020 0.01f + ? av dd 0.47f tdo tck tms tdi trst jtag connector 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 dv dd dv dd 100k ? 100k ? 100k ? dv dd dv dd 32.768khz 0.47f 1k? 0.1f 10f 10f 1.5 ? 270? dv dd av dd adp3333-3.3 in out sd gnd 1 c1+ 2 v+ 3 c1? 4 c2+ 5 c2? 6 v? 7 t2 out 8 r2 in adm3202 rs232 interface* * external uart transceiver integrated in system or as part of an external dongle as described in uc006. standard d-type serial comms connector to pc host 16 v cc 15 gnd 14 t1 out 13 r1 in 12 r1 out 11 t1 in 10 t2 in 9 r2 out 1 2 3 4 5 6 7 8 9 04955-051 figure 95. typical system configuration
aduc7019/20/21/22/24/25/26/2 7/28/29 data sheet rev. f | page 96 of 104 development tools pc - based tools four types of development systems are available for the aduc7019/20/21/2 2/24/25/26/27/28 /29 family. ? the aduc7026 quickstart plus is intended for new users who want to have a comprehensive hardware development environment. because the aduc7026 contains the superset of functions available on the aduc7019/20/21/22/24/25/ 26/27/28 /29 , it is suitable for users who wish to develop on any of the parts in this family. all parts are fully code compatible. ? the aduc7020, aduc7024, and aduc7026 quickstart systems are intended for users who already have an emulator . these systems consist o f the following pc - based (windows? compatible) hardware and software development tools. hardware ? aduc7019/20/21/22/24/25/26/27/28 /29 evaluation board ? serial port programming cable ? rdi - compliant jtag emulator (included in the aduc7026 quickstart plus only) software ? integrated development environment, incorporating assembler, compiler, and nonintrusive jtag - based debugger ? serial downloader software ? example code miscellaneous cd - rom documentation in - circuit serial downl oader the serial downloader is a windows application that allows the user to serially download an assembled program to the on - chip program flash/ee memory via the serial port on a standard pc. the uart - based serial downloader is included in all the development systems and is usable with the aduc7 019/20/21/ 22/24/25/26/27/28 /29 parts that do not contain the i suffix in the ordering guide . an i 2 c based serial downloader and a usb - to - i 2 c adaptor board, usb - ea - convz, are also available at www.analog.com . the i 2 c - based serial downloader is only usable with the part models containing the i suffix (see ordering guide ) .
data sheet aduc7019/20/21/22/24/2 5/26/27/28/29 rev. f | page 97 of 104 outline dimensions 1 40 10 11 31 30 21 20 compliant to jedec standards mo-220-vjjd-2 06-01-2012-d 0.50 bsc p i n 1 i n d i c a t o r 4.50 ref 0.20 min 0.50 0.40 0.30 top view 12 max 0.80 max 0.65 typ seating plane coplanarity 0.08 1.00 0.85 0.80 0.30 0.23 0.18 0.05 max 0.02 nom 0.20 ref 4.25 4.10 sq 3.95 0.60 max 0.60 max pin 1 indicator 6.10 6.00 sq 5.90 5.85 5.75 sq 5.65 for proper connection of the exposed pad, refer to the pin configuration and function descriptions section of this data sheet. exposed pad (bottom view) figure 96. 40-lead lead frame chip scale package [lfcsp_vq] 6 mm 6 mm body, very thin quad (cp-40-1) dimensions shown in millimeters 0.50 bsc bottom view top view pin 1 indicator exposed pad p i n 1 i n d i c a t o r seating plane 0.05 max 0.02 nom 0.20 ref coplanarity 0.08 0.30 0.25 0.18 6.10 6.00 sq 5.90 0.80 0.75 0.70 for proper connection of the exposed pad, refer to the pin configuration and function descriptions section of this data sheet. 0.45 0.40 0.35 0.25 min 4.25 4.10 sq 3.95 compliant to jedec standards mo-220-wjjd. 40 1 11 20 21 30 31 10 05-06-2011-a figure 97. 40-lead lead frame chip scale package [lfcsp_wq] 6 x 6 mm body, very very thin quad (cp-40-9) dimensions shown in millimeters
aduc7019/20/21/22/24/2 5/26/27/28/29 data sheet rev. f | page 98 of 104 * compliant to jedec standards mo-220-vmmd-4 except for exposed pad dimension 0.25 min 1 64 16 17 49 48 32 33 0.50 0.40 0.30 0.50 bsc 0.20 ref 12 max 0.80 max 0.65 typ 1.00 0.85 0.80 7.50 ref 0.05 max 0.02 nom 0.60 max 0.60 max seating plane pin 1 indicator * 4.85 4.70 sq 4.55 pin 1 indicator 0.30 0.23 0.18 for proper connection of the exposed pad, refer to the pin configuration and function descriptions section of this data sheet. top view exposed pad bottom view 9.10 9.00 sq 8.90 8.85 8.75 sq 8.65 06-13-2012-a figure 98. 64-lead lead frame chip scale package [lfcsp_vq] 9 mm x 9 mm body, very thin quad (cp-64-1) dimensions shown in millimeters compliant to jedec standards ms-026-bcd 051706-a top view (pins down) 1 16 17 33 32 48 49 64 0.27 0.22 0.17 0.50 bsc lead pitch 12.20 12.00 sq 11.80 pin 1 1.60 max 0.75 0.60 0.45 10.20 10.00 sq 9.80 view a 0.20 0.09 1.45 1.40 1.35 0.08 coplanarity view a rotated 90 ccw seating plane 0 . 1 5 0 . 0 5 7 3.5 0 figure 99. 64-lead low profile quad flat package [lqfp] (st-64-2) dimensions shown in millimeters
data sheet aduc7019/20/21/22/24/2 5/26/27/28/29 rev. f | page 99 of 104 compliant to jedec standards ms-026-bdd 051706-a 0.15 0.05 1.45 1.40 1.35 0.20 0.09 0.08 coplanarity view a rotated 90 ccw seating plane 7 3.5 0 top view (pins down) 1 21 41 40 60 61 80 20 0.50 bsc lead pitch 0.27 0.22 0.17 1.60 max 0.75 0.60 0.45 view a pin 1 14.20 14.00 sq 13.80 12.20 12.00 sq 11.80 figure 100. 80-lead low profile quad flat package [lqfp] (st-80-1) dimensions shown in millimeters * compliant to jedec standards mo-225 with the exception to package height. 030907-b ball diameter 6.10 6.00 sq 5.90 a 4.55 sq 0.65 a1 corner index area top view bottom view seating plane detail a 0.45 0.40 0.35 coplanarity 0.10 0.15 min ball a1 pad corner detail a * 1.40 max 0.65 min b c d e f g h 12345678 1.50 sq figure 101. 64-ball chip scale package ball grid array [csp_bga] (bc-64-4) dimensions shown in millimeters
aduc7019/20/21/22/24/2 5/26/27/28/29 data sheet rev. f | page 100 of 104 ball diameter 74 5 63 2 1 3.90 bsc sq a 1 corne r index area a b c d e f g bottom view seating plane detail a 0.45 0.40 0.35 coplanarity 0.05 max top view 0.65 bsc 0.55 bsc detail a 1.20 max 1.00 max 0.85 min 0.35 0.20 ball a1 indicator 5.05 5.00 sq 4.95 012006-0 figure 102. 49-ball chip scale package ball grid array [csp_bga] (bc-49-1) dimensions shown in millimeters
data sheet aduc7019/20/21/22/24/25/26/27/28/29 rev. f | page 101 of 104 ordering guide model 1 , 2 adc channels 3 da c channels flash/ ram gpio down - loader tem perature range package description package option ordering quantity aduc7019bcpz62i 5 3 62 kb/8 kb 14 i 2 c ?40c to +125c 40 - lead lfcsp_vq cp - 40 - 1 aduc7019bcpz62i - rl 5 3 62 kb/8 kb 14 i 2 c ?40c to +125c 40 - lead lfcsp_vq cp - 40 - 1 2,500 aduc7019bcpz62i rl7 5 3 62 kb/8 kb 14 i 2 c ?40c to +125c 40 - lead lfcsp_vq cp - 40 - 1 750 aduc7020bcpz62 5 4 62 kb/8 kb 14 uart ?40c to +125c 40 - lead lfcsp_ w q cp - 40 - 9 aduc7020bcpz62 - rl7 5 4 62 kb/8 kb 14 uart ?40c to +125c 40 - lead lfcsp_ w q cp - 40 - 9 750 aduc7020bcpz6 2i 5 4 62 kb/8 kb 14 i 2 c ?40c to +125c 40 - lead lfcsp_ w q cp - 40 - 9 aduc7020bcpz62i - rl 5 4 62 kb/8 kb 14 i 2 c ?40c to +125c 40 - lead lfcsp_ w q cp - 40 - 9 2,500 aduc7020bcpz62irl7 5 4 62 kb/8 kb 14 i 2 c ?40c to +125c 40 - lead lfcsp_ w q cp - 40 - 9 750 aduc7021bc pz62 8 2 62 kb/8 kb 13 uart ?40c to +125c 40 - lead lfcsp_vq cp - 40 - 1 ADUC7021BCPZ62 - rl 8 2 62 kb/8 kb 13 uart ?40c to +125c 40 - lead lfcsp_vq cp - 40 - 1 2,500 ADUC7021BCPZ62 - rl7 8 2 62 kb/8 kb 13 uart ?40c to +125c 40 - lead lfcsp_vq cp - 40 - 1 750 aduc70 21bcpz62i 8 2 62 kb/8 kb 13 i 2 c ?40c to +125c 40 - lead lfcsp_vq cp - 40 - 1 ADUC7021BCPZ62i - rl 8 2 62 kb/8 kb 13 i 2 c ?40c to +125c 40 - lead lfcsp_vq cp - 40 - 1 2,500 aduc7021bcpz32 8 2 32 kb/4 kb 13 uart ?40c to +125c 40 - lead lfcsp_vq cp - 40 - 1 aduc7021bc pz32 - rl7 8 2 32 kb/4 kb 13 uart ?40c to +125c 40 - lead lfcsp_vq cp - 40 - 1 750 aduc7022bcpz62 10 62 kb/8 kb 13 uart ?40c to +125c 40 - lead lfcsp_vq cp - 40 - 1 aduc7022bcpz62 - rl7 10 62 kb/8 kb 13 uart ?40c to +125c 40 - lead lfcsp_vq cp - 40 - 1 750 aduc702 2bcpz32 10 32 kb/4 kb 13 uart ?40c to +125c 40 - lead lfcsp_vq cp - 40 - 1 aduc7022bcpz32 - rl 10 32 kb/4 kb 13 uart ?40c to +125c 40 - lead lfcsp_vq cp - 40 - 1 2,500 aduc7024bcpz62 10 2 62 kb/8 kb 30 uart ?40c to +125c 64 - lead lfcsp_vq cp - 64 - 1 aduc7024bc pz62 - rl7 10 2 62 kb/8 kb 30 uart ?40c to +125c 64 - lead lfcsp_vq cp - 64 - 1 750 aduc7024bcpz62i 10 2 62 kb/8 kb 30 i 2 c ?40c to +125c 64 - lead lfcsp_vq cp - 64 - 1 aduc7024bcpz62i - rl 10 2 62 kb/8 kb 30 i 2 c ?40c to +125c 64 - lead lfcsp_vq cp - 64 - 1 2,500 aduc 7024bstz62 10 2 62 kb/8 kb 30 uart ?40c to +125c 64 - lead lqfp st - 64 - 2 aduc7024bstz62 - rl 10 2 62 kb/8 kb 30 uart ?40c to +125c 64 - lead lqfp st - 64 - 2 1,5 00 aduc7025bcpz62 12 62 kb/8 kb 30 uart ?40c to +125c 64 - lead lfcsp_vq cp - 64 - 1 aduc7025bcpz62 - rl 12 62 kb/8 kb 30 uart ?40c to +125c 64 - lead lfcsp_vq cp - 64 - 1 2,500 aduc7025bcpz32 12 32 kb/4 kb 30 uart ?40c to +125c 64 - lead lfcsp_vq cp - 64 - 1 aduc7025bcpz32 - rl 12 32 kb/4 kb 30 uart ?40c to +125c 64 - lead lfcsp_vq cp - 64 - 1 2,500 aduc7025b stz62 12 62 kb/8 kb 30 uart ?40c to +125c 64 - lead lqfp st - 64 - 2 aduc7025bstz62 - rl 12 62 kb/8 kb 30 uart ?40c to +125c 64 - lead lqfp st - 64 - 2 1,000 aduc7026bstz62 12 4 62 kb/8 kb 40 uart ?40c to +125c 80 - lead lqfp st - 80 - 1 aduc7026bstz62 - rl 12 4 6 2 kb/8 kb 40 uart ?40c to +125c 80 - lead lqfp st - 80 - 1 1,000 aduc7026bstz62i 12 4 62 kb/8 kb 40 i 2 c ?40c to +125c 80 - lead lqfp st - 80 - 1 aduc7026bstz62i - rl 12 4 62 kb/8 kb 40 i 2 c ?40c to +125c 80 - lead lqfp st - 80 - 1 1,000 aduc7027bstz62 16 62 kb/8 kb 40 uart ?40c to +125c 80 - lead lqfp st - 80 - 1 aduc7027bstz62 - rl 16 62 kb/8 kb 40 uart ?40c to +125c 80 - lead lqfp st - 80 - 1 1,000 aduc7027bstz62i 16 62 kb/8 kb 40 i 2 c ?40c to +125c 80 - lead lqfp st - 80 - 1 aduc7027bstz62i - rl 16 62 kb/8 kb 40 i 2 c ?40c to +125c 80 - lead lqfp st - 80 - 1 1,000 aduc7028bbcz62 8 4 62 kb/8 kb 30 uart ?40c to +125c 64- ball csp_bga bc - 64 - 4 aduc7028bbcz62 - rl 8 4 62 kb/8 kb 30 uart ?40c to +125c 64- ball csp_bga bc - 64 - 4 2,500 aduc7029bbcz62 7 4 62 kb/8 kb 22 uart ?40c to +1 25c 49- ball csp_bga bc - 49 - 1 aduc7029bbcz62 - rl 7 4 62 kb/8 kb 22 uart ?40c to +125c 49- ball csp_bga bc - 49 - 1 4,000 aduc7029bbcz62i 7 4 62 kb/8 kb 22 i 2 c ?40c to +125c 49- ball csp_bga bc - 49 - 1 aduc7029bbcz62i - rl 7 4 62 kb/8 kb 22 i 2 c ?40c to +125c 49- ball csp_bga bc - 49 - 1 4,000
aduc7019/20/21/22/24/25/26/2 7/28/29 data sheet rev. f | page 102 of 104 model 1 , 2 adc channels 3 da c channels flash/ ram gpio down - loader tem perature range package description package option ordering quantity eval - aduc7020mkz aduc7020 minikit eval - aduc7020qsz aduc7020 quickstart development system eval - aduc7020qspz aduc7020 quickstart development system eval - aduc7024qsz aduc7024 quickstart developm ent system eval - aduc7026qsz aduc7026 quickstar development system eval - aduc7026qspz aduc7026 quickstart plus development system eval - aduc7028qsz aduc7028 quickstart development system eval - aduc7029qsz aduc7029 quickstart development system 1 z = rohs compliant part. 2 models aduc7026 and aduc7027 include an external memory interface. 3 one of the adc channel s is internally buffered for aduc7019 models.
data sheet aduc7019/20/21/22/24/25/26/27/28/29 rev. f | page 103 of 104 notes
aduc7019/20/21/22/24/25/26/27/28/29 rev. f | page 104 of 104 notes i 2 c refers to a communications protocol originally developed by phillips semiconductors (now nxp semiconductors). ? 2005 - 2013 analog devices, inc. all rights reserved. trademarks and registered trademarks are the property of their respective owners. d04955 - 0 - 5/13(f)


▲Up To Search▲   

 
Price & Availability of ADUC7021BCPZ62

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X